I need to generate crash dump programmatically when ever my application crashes. One approach is hook to UnhandledExceptionFilter using structured exceptions and generate dump in the UnhandledExceptionFilter function uinsg some tools like Dr Watson. Is this proper approach? or please suggest a better approach.
You might want to take a look at the samples that come with the WinDBG SDK.
It may not be installed by default; not sure, and I don’t have an
installation in front of me, but there’s a sample in there that does
something along these lines, as I recall - handles crashes, that is. I
don’t recall if it creates a dump in reponse or not, but you can easily do
that with the DbgEng API (see docs for IDebugControl).
Good luck,
mm
On Tue, Sep 21, 2010 at 4:45 AM, wrote:
> Hi All, > > I need to generate crash dump programmatically when ever my application > crashes. One approach is hook to UnhandledExceptionFilter using structured > exceptions and generate dump in the UnhandledExceptionFilter function uinsg > some tools like Dr Watson. Is this proper approach? or please suggest a > better approach. > > Thanks, > Anil > > > — > WINDBG is sponsored by OSR > > For our schedule of WDF, WDM, debugging and other seminars visit: > http://www.osr.com/seminars > > To unsubscribe, visit the List Server section of OSR Online at > http://www.osronline.com/page.cfm?name=ListServer >