System.SysUtils.AddTerminateProc

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

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 Object Pascal 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.

See Also