Destroys the instance of the data module.
destructor Destroy; override;
virtual __fastcall ~TDataModule();
Do not call Destroy directly. Instead call Free, which checks that the data module reference is not nil before calling Destroy.
Before calling the inherited destructor, Destroy removes any fixup references, calls its OnDestroy event handler (if one is defined and OldCreateOrder is true), and informs the global screen variable that the data module is going away.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!