tags:

views:

51

answers:

1

I have a printing application that is using the Printer object to print files. On one particular machine (not others), this program will crash after processing some number of files (20 or so).

The crashes always occur during a DoEvents call.

Has anyone seen anything like this?

Thanks!

+3  A: 

I would examine the Dr. Watson and mini dump files and find out what exactly is crashing. On XP this lives in:

C:\Documents and Settings\All Users\Application Data\Microsoft\Dr Watson

In other versions of Windows, different places. Load the Minidump into a modern version of Visual Studio with the pdo (debugging symbols) of your program and you should have a pretty good idea of what is crashing. If you haven't made symbolic debug info, make a build with that. Also, make sure you are compiling to Native code and not P-Code (sometimes P-Code crashes and you can't figure out why)...

Kris Erickson
Thanks, Kris. Thus far, I only have one mini dump files from one crash, and that was from a version of the program that did not have symbolic debug info in it. I will still try to load it into VS and see what's going on, though. I am compiling into native code.
Stringfellow
It's always a pain when you have to do this, but I have learned from experience always create a PDB and put it in your version control. We have had problems with weird things like apps only crashing with the German version of Windows XP and the like and the only way you can figure out what is going wrong is with the old reliable minidump (which isn't always reliable). There are options in Dr. Watson you may want to turn on in the client as well,
Kris Erickson