RAD Studio
ContentsIndex
PreviousUpNext
terminate

Header File 

except.h 

Syntax 

void terminate(); 

Description 

The function terminate can be called by unexpected or by the program when a handler for an exception cannot be found. The default action by terminate is to call abort. Such a default action causes immediate program termination. 

You can modify the way that your program will terminate when an exception is generated that is not listed in the exception specification. If you do not want the program to terminate with a call to abort, you can instead define a function to be called. Such a function (called a terminate_handler) will be called by terminate if it is registered with set_terminate. 

Return Value 

None.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!