ExitProc Variable
When an application exits, it calls the procedure that
ExitProc
points to. The procedure takes no
arguments. ExitProc
exists only for backward
compatibility with older Delphi programs. New Delphi programs should
use a finalization section instead. If you must use
ExitProc
, see the AddExitProc
procedure in the SysUtils
unit for a better way to
set up an exit
procedure.