user506998
user506998

Reputation: 95

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 handler that could override these existing ones?

Upvotes: 1

Views: 312

Answers (1)

Patrick
Patrick

Reputation: 23629

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."

Upvotes: 2

Related Questions