4 ms·
> Structured Exception Handling (SEH) was born. This, including the abbreviation, is the name of a feature of the Windows API. The author is confused between
by kazinator 7y ago
> Structured Exception Handling (SEH) was born.
This, including the abbreviation, is the name of a feature of the Windows API.
The author is confused between exception handling in programming languages, and exception handling in the MS Windows operating system.
https://docs.microsoft.com/en-us/windows/win32/debug/about-structured-exception-handling https://docs.microsoft.com/en-us/windows/win32/debug/about-s...
https://en.wikipedia.org/wiki/Microsoft-specific_exception_handling_mechanisms#SEH https://en.wikipedia.org/wiki/Microsoft-specific_exception_h...
Note that in Microsoft C++, this uses special __try, __except and __finally keywords, which use underscores because they are extensions, separate from the ISO C++ try and catch.
SEH can catch events like access violations. It's more like Common Lisp exception handling in that you can catch errors without any stack unwinding taking place, so that fixing up a fault and re-starting an instruction is possible (like catching a SIGSEGV or SIGBUS on POSIX).