SysUtils.AddExitProc
From RAD Studio VCL Reference
Delphi Information
From SysUtils.pas
procedure AddExitProc(Proc: TProcedure);
Unit: SysUtils
Type: procedure
Visibility: public
C++ Information
From SysUtils.hpp
void __fastcall AddExitProc(void (_fastcall *)() Proc);
Unit: SysUtils
Type: function
Description
Adds a procedure to the exit list.
AddExitProc adds Proc to the Delphi exit procedure list, so that Proc is automatically executed when the application terminates. AddExitProc is not compatible with ULX package support and is provided for backward compatibility only. Do not use AddExitProc in new applications.