System.Classes.TThread.FatalException

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property FatalException: TObject read FFatalException;

C++

__property System::TObject* FatalException = {read=FFatalException};

Properties

Type Visibility Source Unit Parent
property public
System.Classes.pas
System.Classes.hpp
System.Classes TThread

Description

Determines whether the thread object is automatically destroyed when the thread terminates.

If the Execute method raises an exception that is not caught and handled within that method, the thread terminates and sets FatalException to the exception object for that exception. Applications can check FatalException from an OnTerminate event handler to determine whether the thread terminated due to an exception.

See Also