[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Add a procedure to the exit chain.
Source position: sysutilh.inc line 265
procedure AddTerminateProc( |
TermProc: TTerminateProc |
); |
AddTerminateProc adds TermProc to the list of exit procedures. When the program exits, the list of exit procedures is run over, and all procedures are called one by one, in the reverse order that they were added to the exit chain.
If no memory is available on the heap, an exception may be raised.
|
Terminate procedure procedural variable. |
|
|
Call the exit chain procedures. |