Tuesday, December 10, 2013

Win32 SEH Exceptions

Below is the diagram of how the debugger gets the events when an exception happens.
  • The Debuggee sends a notification to the Debugger when the exception happens for the first time.
    This is event is sent to the debugger even before the debuggee gets a chance to handle it.
  • If the debugger ignores this and continues
  • 2nd Chance Exception is sent to the debugger to some handling
Here is the output of the debugger.
"First chance exceptions are reported before any exception handling."
(211c.2840): C++ EH exception - code e06d7363 (first chance)
(211c.2840): C++ EH exception - code e06d7363 (!!! second chance !!!)