EasyTable: Single-File Embedded BDE Replacement
Database for Delphi and C++Builder


TDataSet.Destroy
TDataSet
Top 

Destroys the TDataSet instance.

destructor Destroy;

Description
Do not call Destroy directly in an application. Usually destruction of datasets is handled automatically by Delphi. If an application creates its own instances of a dataset, however, and does not assign an Owner that is responsible for freeing the dataset, then the application should call Free, which checks that the dataset reference is not nil before calling Destroy.

Destroy performs the following tasks:

·Closes the dataset.  
·Frees the Dataset Designer for the dataset, if it exists.  
·Disassociates the dataset from its data source components and frees the memory allocated for them.  
·Destroys the fields and field definitions associated with the dataset and frees the memory allocated to them.  
·Calls the inherited destructor.  


© AidAim Software EasyTable: Easytable Single-file Embedded Database Bde Replacement Delphi C\+\+builde