Topic Path: Symbol Reference > Classes > TIdUDPListenerThread Class > TIdUDPListenerThread Methods > Destroy Destructor
ContentsIndexHome
PreviousUpNext
TIdUDPListenerThread.Destroy Destructor

Destructor for the object instance.

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.

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