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

Destructor for the object instance.

destructor Destroy; override;

Destroy is the destructor for the object instance. 

Destroy calls CloseSocket to close the connection using the socket handle, and destroys the socket handle for the descriptor to ensure that additional IO cannot be performed. 

Destroy frees the interal TIdCriticalSection instance used to provide thread-safe access to resources in the class instance. 

Destroy calls the inherited destructor propr to exiting from the method.

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