System.Classes.TDataModule.Destroy

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

destructor Destroy; override;

C++

__fastcall virtual ~TDataModule();

Properties

Type Visibility Source Unit Parent
destructor public
System.Classes.pas
System.Classes.hpp
System.Classes TDataModule

Description

Destroys the instance of the data module.

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.

See Also