[Lazarus] Mutlithreaded Dll Callback crashes my Application

Sven Barth pascaldragon at googlemail.com
Wed Aug 25 17:24:20 CEST 2010


Am 25.08.2010 17:02, schrieb Alexander Grau:
>> Does it even work if you use threadvars? It should as the Heap uses
>> threadvars, but I want to be sure. (and now I'm also curious to know
>> why it works with 2.4.0 ^^)
> I have modified the test - now it's using multiple external threads and
> that works fine too until the moment I enable any 'writeln'. Using
> threadvars or not doesn't make any difference. Using any writeln will
> make it crash. If not using writeln, the external threads can call FPC
> objects to increase some counters that are correctly displayed at the
> end of the program for each thread.

So the runtime must be tested more when using external threads... Does 
the writeln work when you use FPC threads?

Regards,
Sven




More information about the Lazarus mailing list