开发者

fatal error minidump

开发者 https://www.devze.com 2023-01-25 18:27 出处:网络
I want to write a utility that in the event of a fatal error, a minidump dmp file is created.I\'m using the clrdump api and that seems fairly straightforward.

I want to write a utility that in the event of a fatal error, a minidump dmp file is created. I'm using the clrdump api and that seems fairly straightforward.

What I wanted to know is, what should I be reading up on to determine how to trigger an event when there is a fatal error that allows for this minidump to be created.

I will be writing it in 开发者_JAVA百科C#.

Thanks.


AppDomain.UnhandledException is your friend.

Beware that the exception info you can get out of the e.ExceptionObject is almost always more useful than the minidump. Have you tried minidump debugging yet? They are invaluable to C/C++ programmers when created in the callback set by SetUnhandledExceptionFilter(). That's not appropriate in a managed program though, the CLR already installs one. Not having to screw around with minidumps anymore and getting clean stack traces is one of .NET's great advantages.

0

精彩评论

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