Discussion:
How to get the stack trace when application crashes ?
(too old to reply)
Kuenga
2007-09-03 12:31:17 UTC
Permalink
Hi,

I have set a function to catch the exception when system crashes
using
the API SetUnhandledExceptionFilter. I used
AfxDumpStack(AFX_STACK_DUMP_TARGET_DEFAULT) inside the exception
handler function but didnot get the stack trace as shown by
Dr.Watson.
In Dr.Watson, i see funtion address, i want to know what is the
funtion name.


I am finding difficult to manage the PDB and corresponding binary, so
thought of writing the stack trace in the exception handler which the
Dr.Watson write when the crash occur.


How to get the stack trace when the application has crashed similay
to
what the Dr.Watson dump in the log file ?


Thanks
www.fruitfruit.com
2007-09-04 14:17:53 UTC
Permalink
The following is a way to get stack trace.
http://www.codeproject.com/cpp/exception.asp

Loading...