Robustness
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Robustness

Use the following C run-time library functions to improve the robustness of your program.

Run-Time Robustness Functions

Function Use
_set_new_handler Transfers control to your error-handling mechanism if the new operator fails to allocate memory.
_set_se_translator Handles Win32 exceptions (C structured exceptions) as C++ typed exceptions.
_set_security_error_handler Registers a security error handler
set_terminate Installs your own termination function to be called by terminate.
set_unexpected Installs your own termination function to be called by unexpected.

See Also

Run-Time Routines by Category | Run-Time Routines and .NET Framework Equivalents | SetUnhandledExceptionFilter

Show:
© 2016 Microsoft