Stefan
Stefan

Reputation: 4206

Setting up automatic crash dump generation on Windows

I've been looking around SO, but didn't find the definitive answer. I want to set up automatic crash dump generation on a production machine so that whenever a crash or hang happens, the dump will be saved to the disk without user's intervention.

I'd like to have a single solution that would handle both managed and unmanaged code on Windows XP (32bit) and Windows 7 (32bit) with minimum additional dependencies.

Any tips?

Upvotes: 2

Views: 590

Answers (1)

PhilMY
PhilMY

Reputation: 2651

For unmanaged code, you could wrap each thread with a structured exception handler and call GetExceptionInformation in your filter expression to get a pointer to the EXCEPTION_POINTERS structure. Then call MiniDumpWriteDump and remember to archive the PDB files from your build.

If you can install other tools on the production machine there is a comparison table here.

Upvotes: 1

Related Questions