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

fredvs fiens at hotmail.com
Wed Apr 12 13:43:48 CEST 2017

>>   TDummyThread.Create(True) 

> Huh, I have memory leak with this. 

>  Should it not be: --> TDummyThread.Create(false) ? (because with this, no
> memory leak) 


Sorry to come back with this but without answer I am still full of doubt.

Is TDummyThread.Create(True)  wanted and so the dummy thread must exist
during all the application and freed at end of application ?

Or is TDummyThread.Create(false) ok ?



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

More information about the fpc-pascal mailing list