System.SysUtils.AddTerminateProc
Delphi
procedure AddTerminateProc(TermProc: TTerminateProc);
C++
extern DELPHI_PACKAGE void __fastcall AddTerminateProc(TTerminateProc TermProc);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | System.SysUtils |
Description
Adds a terminate procedure to the system list of termination procedures.
Call AddTerminateProc in Delphi code to add a procedure that is called when the application is about to terminate. The runtime library calls all termination procedures before the application terminates. The supplied termination procedure (TermProc) should return True if the application can safely terminate or False if the application cannot safely terminate. If any termination procedure returns False, the application does not terminate.