[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'db' (#fcl)

# TCustomConnection.Destroy

Remove the TCustomconnection instance from memory

## Declaration

Source position: db.pas line 1601

`public destructor TCustomConnection.Destroy; override;`

## Description

Destroy closes the connection, and then calls the inherited destructor.

## Errors

If an exception is raised during the disconnect process, an exception will be raise, and the instance is not removed from memory.

## See also

TCustomConnection.Close |  | Close the connection

The latest version of this document can be found at lazarus-ccr.sourceforge.net .