AddTerminateProc

Add a procedure to the exit chain.

Declaration

Source position: sysutilh.inc line 265

  procedure AddTerminateProc(TermProc: TTerminateProc);

Description

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.

Errors

If no memory is available on the heap, an exception may be raised.

See also

Name Description
CallTerminateProcs Call the exit chain procedures.
TTerminateProc Terminate procedure procedural variable.

results matching ""

    No results matching ""