ReleaseConnection Method
Releases the COM pointer created when the connection is initialized.
Visual Basic
Public Sub ReleaseConnection() 

After releasing the connection, the Connected Property is False.

Call Disconnect and Logout before calling ReleaseConnection.

For a table of properties affected by the state of the connection, see the Remarks for the TDConnection object.

On some platforms and security configurations, ReleaseConnection can cause exceptions. We recommend that you catch exceptions thrown by the ReleaseConnection call to prevent the application halting. The exception handler can be empty.  Failure of ReleaseConnection may result in unused objects in memory not being freed.

See Also