Core dump files

  • Thread starter Thread starter Alamelu
  • Start date Start date
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.
 
Back
Top