Skip to content

EThreadExternalException

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

    Declaration

    Source position: classesh.inc line 2368

    type
    
      EThreadExternalException = class(EThread)
      end;
    

    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

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