For Programmers: Free Programming Magazines  


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
GMP

2005-05-31, 4:02 am

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]











Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com