[fpc-pascal] Call function in shared library from multiple threads

fredvs fiens at hotmail.com
Fri Mar 31 18:40:35 CEST 2017


Michael Van Canneyt wrote
> Best is probably:
> 
> Type
>    TDummyThread = Class(TThread)
>    public
>      procedure execute; override;
>    end;
> 
> procedure TDummyThread.Execute;
> 
> begin
>    FreeOnTerminate:=True;
>    Terminate;
> end;
> 
> 
> begin
>    TDummyThread.Create(True)
> end.


OK, perfect, no more warning, thanks doctor. 

Fre;D



-----
Many thanks ;-)
--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Call-function-in-shared-library-from-multiple-threads-tp5728035p5728060.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.



More information about the fpc-pascal mailing list