Core dump files

A

Alamelu

What code to be added to generate a core dump during crash in a MFC application
 
J

Jeroen Mostert

Alamelu said:
What code to be added to generate a core dump during crash in a MFC application

Well, if you ask Microsoft, you should rely on Windows Error Reporting to
take care of this.

You can install a top-level exception handler and call MiniDumpWriteDump()
yourself, but this is fraught with peril; you have to suspend threads
youself and the whole thing can fail if your process is crashing due to
memory corruption. Still, it can be better than nothing.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top