RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.AddTerminateProc Function

Adds a terminate procedure to the system list of termination procedures.

Pascal
procedure AddTerminateProc(TermProc: TTerminateProc);
C++
AddTerminateProc(TTerminateProc TermProc);

SysUtils

Call AddTerminateProc in Delphi code to add a procedure that is called when the application is about to terminate. The run time 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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!