RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TServerSocketThread.Destroy Destructor

Destroys the thread object and releases the memory allocated to it.

Pascal
destructor Destroy; override;
C++
virtual __fastcall ~TServerSocketThread();

For C++, do not call Destroy in an application. Instead, use the delete keyword to destroy a thread when FreeOnTerminate is false.  

Destroy signals the thread to terminate and then waits for the thread to return before calling the parent class’s destructor. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!