开发者

Setting up automatic crash dump generation on Windows

I've been looking around S开发者_如何学GoO, 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?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜