Re: [fpc-pascal] TThread.Synchronize doesn't work in DLL

2011-02-01 Thread dibo20
W dniu 01.02.2011 14:08, michael.vancann...@wisa.be pisze: To synchronize threads created in the DLL you must explicitly export a call from your DLL which calls CheckSynchronize, and this call must be called from the main program at regular intervals. Hm so I have problem because I don't have s

Re: [fpc-pascal] TThread.Synchronize doesn't work in DLL

2011-02-01 Thread michael . vancanneyt
On Tue, 1 Feb 2011, dib...@wp.pl wrote: Hi, I have form and thread in DLL. It seems that Synchronize() doesn't work. Thread is hanging on first Synchronize(). It works only when I open form in ShowModal. I debug this and only difference between Show() is that ShowModal call WidgetSet.AppPro

Re: [fpc-pascal] TThread.Synchronize doesn't work in DLL

2011-02-01 Thread Marco van de Voort
In our previous episode, dib...@wp.pl said: > > I have form and thread in DLL. It seems that Synchronize() doesn't work. > Thread is hanging on first Synchronize(). Probably you have two RTLs, one in the RTL and one in the main program. As far as I know this will also fail in Delphi. __

[fpc-pascal] TThread.Synchronize doesn't work in DLL

2011-02-01 Thread dibo20
Hi, I have form and thread in DLL. It seems that Synchronize() doesn't work. Thread is hanging on first Synchronize(). It works only when I open form in ShowModal. I debug this and only difference between Show() is that ShowModal call WidgetSet.AppProcessMessages in loop. I can rewrite my code