Internet Direct (Indy)
Home
PreviousUpNext
TIdThread.TerminateAndWaitFor Method

Signals a thread to terminate and waits for completion of the Execute method.

Pascal
procedure TerminateAndWaitFor; virtual;

TerminateAndWaitFor is a procedure used to terminate and wait for completion of the executing thread. 

When FreeOnTerminate contains True, an EIdThreadTerminateAndWaitFor exception will be raised. 

TerminateAndWaitFor calls the Terminate method, and calls Start to allow the thread to complete execition. TerminateAndWaitFor calls WaitFor to delay until completion of the thread.

Exceptions 
Description 
Raised with the message RSThreadTerminateAndWaitFor
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.