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."
精彩评论