Internet Direct (Indy)
Home
PreviousUpNext
TIdTCPConnection.Destroy Destructor

Frees the object instance.

Pascal
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.

IOHandler 

FreeIOHandlerOnDisconnect 

LastCmdResult 

Greeting

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.