[Lazarus] Mutlithreaded Dll Callback crashes my Application

Vincent Snijders vincent.snijders at gmail.com
Wed Aug 25 20:44:29 CEST 2010


2010/8/25 Alexander Grau <alex at grauonline.de>:
> Here's the test program:
>
> http://grauonline.de/alexwww/tmp/extthread.zip
>
> Can you see any analogy to the problem? I have tried to add your suggested
> "IsMultithread:=true" and it doesn't make any difference. I think there's
> something wrong in the FPC runtime.
>

I took a quick look at it, but missed the code where the first FPC
thread is created, before any external threads that use the FPC RTL is
created.

That is required, as is mentioned earlier in this thread by Sven too:
http://www.hu.freepascal.org/lists/fpc-pascal/2010-July/025939.html

Vincent




More information about the Lazarus mailing list