Home > Archive > VC Language > June 2005 > Catch SEH with info log
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Catch SEH with info log
|
|
|
| When catching a SEH, how to log info like a stack trace?
What kind of thread info needs to be logged?
What others helpful?
| |
| Oleg Starodumov 2005-06-01, 9:09 am |
|
> When catching a SEH, how to log info like a stack trace?
>
You can use StackWalk64 function (from DbgHelp.dll).
http://msdn.microsoft.com/library/e...stackwalk64.asp
You can find many samples on the net.
> What kind of thread info needs to be logged?
>
It depends on what you want to do with this information.
If you need it for postmortem debugging, then better take a look
at minidumps (MiniDumpWriteDump function, and so on) -
they allow to get the call stacks, as well as other useful information.
For example:
http://www.debuginfo.com/articles/effminidumps.html
Regards,
Oleg
[VC++ MVP]
|
|
|
|
|