Q:

VB6 program crashing during DoEvents, why?

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!

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)...

