Topic Path: Symbol Reference > Classes > TIdTCPConnection Class > TIdTCPConnection Methods > Destroy Destructor
TIdTCPConnection.Destroy Destructor

Frees the object instance.

destructor Destroy; override;

Destroy is the destructor for the object instance. 

Destroy ensures that an assigned IOHandler has closed its connection to the peer. 

Destroy checks FreeIOHandlerOnDisconnect to determine if the IOHandler must be freed in the destructor. When FreeIOHandlerOnDisconnect is True, the IOHandler property is freed and FreeIOHandlerOnDisconnect is reset to False. 

Destroy frees resources allocated to properties in the Create constructor, including LastCmdResult and Greeting

Destroy calls the inherited Destroy method to complete destruction of the object instance.





Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.