When an exception happens, as you know, it passes pContext to the SEH. Is there anyways to access the pContext in a Try/Catch? I guess I could have the exception class grab it when being initiated but that would only work for that class and not for every exception.
+1
A:
Hard to know what you're looking for...
THE Guide for SEH: http://www.microsoft.com/msj/0197/Exception/Exception.aspx
Have a look to that as well: http://www.programmingunlimited.net/siteexec/content.cgi?page=mingw-seh http://msdn.microsoft.com/en-us/library/swezty51%28VS.80%29.aspx
Note: take care depending on the version of your compiler C++ exceptions and SEH exceptions might not be handle all together: http://www.thunderguy.com/semicolon/2002/08/15/visual-c-exception-handling/
nico
2009-12-14 06:15:00
GetThreadContext() I basically want to call that on the current thread before the exception occurred. Windows already does this when an exception occurs and passes it to the SEH.But I am guessing the compilers don't support this.
2009-12-14 15:12:00
Are you trying to log the call stack?http://www.codeguru.com/forum/archive/index.php/t-266006.html
nico
2009-12-14 23:54:57