Defines thread's execution.
Unit
Syntax
RemarksOverride Execute and insert the code that should be executed when the thread runs. Execute is responsible for checking the value of the Terminated property to determine if the thread needs to exit.
A thread executes when Create is called if CreateSuspended set to False, or when Start is first called after the thread is created if CreateSuspended set to True.
Examples
Since analyzing FatalException property or creating OnTerminate handler just for handling exceptions in thread is a lot of work - TThreadEx class presents a new property to handle exceptions automatically:
See also
|