The latest version of this topic can be found at unexpected (CRT).
Calls terminate or function you specify using set_unexpected.
Syntax
void unexpected( void );  
Remarks
The unexpected routine is not used with the current implementation of C++ exception handling. unexpected calls terminate by default. You can change this default behavior by writing a custom termination function and calling set_unexpected with the name of your function as its argument. unexpected calls the last function given as an argument to set_unexpected.
Requirements
| Routine | Required header | 
|---|---|
unexpected | 
<eh.h> | 
For additional compatibility information, see Compatibility in the Introduction.
.NET Framework Equivalent
See Also
Exception Handling Routines
abort
_set_se_translator
set_terminate
set_unexpected
terminate