Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Win32 structured exception handling (SEH) differs from C++ exception handling. C++ exception handling model deals in types, but Win32 SEH deals with exceptions of one type: unsigned int. That is, Win32 exceptions are identified by an unsigned integer value, but C++ exceptions are identified by data type.
When an exception is raised in the SEH model, each possible handler executes a filter that examines the exception context and determines whether to accept the exception, pass it to another handler, or ignore it.
When an exception is thrown in C++, it can be of any type.
A second difference is that the Win32 SEH model is asynchronous, because exceptions occur secondary to the normal flow of control. The C++ exception handling mechanism is synchronous, which means that exceptions occur only when they are thrown with the throw keyword.
See Also
Exception Handling for Windows CE | Exception Handling Overhead
Send Feedback on this topic to the authors