Internet Direct (Indy)
Home
PreviousUpNext
TIdUDPListenerThread.Destroy Destructor

Destructor for the object instance.

Pascal
destructor Destroy; override;

Destroy is the destructor for TIdUDPListenerThread, and is responsible for disposing of the object instance. Destroy frees the internal buffer allocated for reading datagrams from a client connection, and calls the inherited destructor. 

Destroy should not be directly called in an application. Use Free instead. Free checks to ensure that the object reference is not Nil before calling Destroy. 

Note: 

If an exception is emitted from the constructor, the destructor is called to destroy the partially constructed object instance. Destructors should check that allocated resources, such as handles, were actually allocated before trying to release them.

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.