[Lazarus] Mutlithreaded Dll Callback crashes my Application
Alexander Grau
alex at grauonline.de
Wed Aug 25 17:57:38 CEST 2010
Sven Barth schrieb:
> Am 25.08.2010 17:48, schrieb Alexander Grau:
>> Sven Barth schrieb:
>>> 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?
>> Yes, using FPC threads it works - it crashes only when using external
>> threads.
>>
>
> Might be the time to report this to the FPC devs. Maybe I'll take a
> look into the RTL by myself as well, but I can't promise anything.
I think so - can you report it if you cannot find something after
digging into the RTL?
Thanks,
Alexander
More information about the Lazarus
mailing list