开发者

Get pContext in Try/Catch handler?

When an exception happens, as you know, it passes pContext to the SEH. Is there anyways to access the p开发者_JAVA百科Context 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.


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(VS.80).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/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜