thread OnWaitTimeoutExpired event
Return to Introduction  Previous page  Next page
Applies to
acThread, acHTTP, acSendMail and acSQLQueryThread components.  

  TacThreadWaitTimeoutExpired = procedure(Sender: TObject; var TerminateThread: Boolean) of object;  
property OnWaitTimeoutExpired: TacThreadWaitTimeoutExpired;  

The OnWaitTimeoutExpired event occurs when the component did not finished execution for the time interval specified in WaitTimeout property (when WaitTimeout is expired).  
tip The TherminateThread is optional parameter (True by default), which allows to terminate, or prevent termination of thread in case if specified time interval is expired before completion of execution of the thread.  

The WaitTimeout only works together with WaitThread property, only when it set to True.  

See also
WaitThread and WaitTimeout properties;  
Terminate method.