[fpc-pascal] Call function in shared library from multiple threads
Michael Van Canneyt
michael at freepascal.org
Fri Mar 31 17:56:42 CEST 2017
On Fri, 31 Mar 2017, fredvs wrote:
> Michael Van Canneyt wrote
>> To fix that, you can do the following.
>> In the library startup code, create a dummy thread.
>> This will initialize the threads mechanism:
>> with TThread.Create(False) do
> I use this for initialize my libraries:
Best is probably:
TDummyThread = Class(TThread)
procedure execute; override;
More information about the fpc-pascal