RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSQLConnection.Destroy Destructor

Destroys the SQL connection object.

Pascal
destructor Destroy; override;
C++
virtual __fastcall ~TSQLConnection();

To free a TSQLConnection instance, do not call Destroy. Instead, call Free. Free verifies that the ADO connection is not nil, and only then calls Destroy. 

There is no need to explicitly free instances of TSQLConnection that were created with an Owner. 

 

Owner 

Create 

delete 

Free

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