Sign in Join
FPDoc Onlineexperiment

AddTerminateProc procedure

In unit sysutils

Add a procedure to the exit chain.

Declaration

pascal
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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.