Re: Finding out where a crash occurred

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Stanza wrote:
I'm developing on Vista, and my program may dynamically load DLLs from other suppliers, so to a degree it will be at the mercy of bugs in other people's code.

If a user reports a crash, I need to be able to find out whether the problem is in MY code or in one of those DLLs.

If I create a DEBUG build then the stack trace in the IDE will tell me where a crash occured - that's IF I can reproduce the user's reported crash.

But when the RELEASE version is run on Vista, and a crash occurs all that appears on the screen is a message box that says that "MYPROG has stopped working" and a CLOSE button. There doesn't seem to be any information about the crash at all - not even an address.

Does Windows XP give any more information when a program crashes?

So if my program crashes on someone else's PC how do I get the necessary information to find out roughly where the crash happened - particularly whether it was in my own code or one of the DLLs?


Alternatively, you can install (on the customer's machine) the Debugging Tools for Windows package:
Debugging Tools for Windows - Overview:
http://www.microsoft.com/whdc/devtools/debugging/default.mspx

Once installed, you can use the ADPlus script to generate a crash dump when the program throws an exception. For instance, you could start a command window from the folder where the tools are installed with:
cscript adplus.vbs -crash -quiet -pn <yourprogname> -o: <some path to a folder for the dump>

Then, using the WinDbg debugger (also part of the tools you installed), you can open the dump file and examine it for details about the location of the crash. You can start with the command "!analyze -v"


.



Relevant Pages

  • Re: Programs for breaking Classic Ciphers
    ... Sorry to hear my program crashes your windows box;)> ... Is there a particular ciphertext or feature you ... but it always manages to crash my windows ...
    (sci.crypt)
  • Re: Programs for breaking Classic Ciphers
    ... Sorry to hear my program crashes your windows box;)> ... Is there a particular ciphertext or feature you ... but it always manages to crash my windows ...
    (sci.crypt)
  • Re: is this defined behaviour in C++?
    ... happen afterwards, the program may crash, anything. ... particular, usually the program crashes. ... Ioannis Vranos ...
    (comp.lang.cpp)
  • Re: Finding out where a crash occurred
    ... so to a degree it will be at the mercy of bugs in other people's code. ... If a user reports a crash, I need to be able to find out whether the problem is in MY code or in one of those DLLs. ... The safest thing you could do, and it's potentially a lot of extra work, would be to have an out-of-process host for these components. ...
    (microsoft.public.vc.language)
  • IRS payment
    ... A US law official identified the pilot as Joseph Stack - whose home was set on fire just before the crash - and said investigators were looking at an anti-government message on the web linked to him. ... After the plane crashed into the building, flames shot out, windows exploded and workers scrambled to safety. ... Jacobson, also an IRS revenue officer, said about six people couldn't use the stairwell because of smoke and debris.He found a metal bar to bust a window so the group could crawl out on a concrete ledge where they were rescued by firefighters. ...
    (rec.motorcycles)