RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.RemoveModuleUnloadProc Function

RemoveModuleUnloadProc removes a call to your defined routine when a package is unloaded.

Pascal
procedure RemoveModuleUnloadProc(Proc: TModuleUnloadProc); overload;
procedure RemoveModuleUnloadProc(Proc: TModuleUnloadProcLW); overload;
C++
RemoveModuleUnloadProc(TModuleUnloadProc Proc);
RemoveModuleUnloadProc(TModuleUnloadProcLW Proc);

Before Delphi unloads a package that was used by your application, it can optionally call your Proc routine. In essence, AddModuleUnloadProc adds your routine to the head of the list of internal routines that Delphi invokes to perform the unload. RemoveModuleUnloadProc reverses the effect of AddModuleUnloadProc

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!