开发者

Exception handling

I was trying to write a code to handle exceptions, but overriding another exception handler, is it possible?

I was developing an .exe in asm to debug a .dll, and detect some exceptions that are raised (access violation) but the .dll has its own exception handling, so a normal SEH should not work.

I would like to know if there is any kind of global exception handl开发者_如何学编程er that could override these existing ones?


Take a look at Vectored Exception Handling (http://msdn.microsoft.com/en-us/library/ms681420.aspx). The page states that "An application can register a function to watch or handle all exceptions for the application. Vectored handlers are not frame-based, therefore, you can add a handler that will be called regardless of where you are in a call frame. Vectored handlers are called in the order that they were added, after the debugger gets a first chance notification, but before the system begins unwinding the stack."

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜