Uninformed: Informative Information for the Uninformed

Vol 4» 2006.Jun

Uses for Unhandled Exception Filters

In most cases, unhandled exception filters are used for language-specific exception handling. This usage is all done transparently to programmers of the language. For instance, C++ code will typically register an unhandled exception filter through CxxSetUnhandledExceptionFilter during CRT initialization as called from the entry point associated with the program or shared library. Likewise, C++ will typically deregister the unhandled exception filter that it registers by calling CxxRestoreUnhandledExceptionFilter during program termination or shared library unloading.

Other uses include programs that wish to do advanced error reporting or information collection prior to allowing an application to terminate due to an unhandled exception.