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_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
Universal C runtime routines by category
SetUnhandledExceptionFilter
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για