[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Classes' (#rtl)

# EThreadExternalException

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Exception raised when an invalid operation is attempted on an external thread

## Declaration

Source position: classesh.inc line 1684

`type EThreadExternalException = class(EThread)`

## Inheritance

`EThreadExternalException` |  | Exception raised when an invalid operation is attempted on an external thread
`EThread` |  | Thread error exception.
`Exception` |  | Base class of all exceptions.
`TObject`

## Description

EThreadExternalException is raised by for example TThread.CheckTerminated and TThread.SetReturnValue when the thread was not created by the Free Pascal program, but by an external code base (for example a DLL, or the calling application in a DLL).

## See also

TThread.CheckTerminated |  | Check if the current thread has finished executing.
TThread.SetReturnValue |  | Set return value of a thread

Documentation generated on: May 14 2021