How to create minidump for my process when it crashes?

Viewed 43251

I am not able to create minidump form my process by changing system setting. So my Question is :

  • Will the system create a minidump for a user process when it crashes

    If yes, which setting do I need to configure

  • Or do I have to create minidump programmatically.

  • How effective are minidumps while investigating a crash

I'm using Windows XP, C++, VC6

6 Answers

I realise this is an old question, but in terms of system settings (first dot point of the OP), you can enable a setting to use Windows Error Reporting's built-in auto-crash dump generation. This is documented here: https://docs.microsoft.com/en-us/windows/win32/wer/collecting-user-mode-dumps. As this requires elevation, this is best set either manually (provided you're an admin) or at your application's install time. I don't recommend setting it at runtime if your app otherwise does not require elevation.

Essentially, you create create a new key under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\<app_name.exe> and customise the options there. The nice thing about this is that the crash dumps are automatically generated, and you can can control where they're stored, the type and what info is included, and how many dumps are retained.

This is probably the easiest method of generating and managing user mode crash dumps on Windows.

Related