Re: [fpc-pascal] A question about sets performance

2011-02-01 Thread Sven Barth
Am 31.01.2011 22:59, schrieb Jeppe Johansen: It's true that the semantics are the same, and it would probably make sense to do some optimizations on typed constants that aren't ever written to(the FPC rtl abuses the typed constant variable property in the heap manager code, for example) I

[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

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.

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

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

[fpc-pascal] New multicast event implementation

2011-02-01 Thread Anthony Walter
Hello all. I implemented a new type of multicast events in Delphi based on generics. I thought someone could maybe consider and convert this implementation to Free Pascal. Here is a link to an article describing the implementation, its benefits and usage, and well as the full source code. Let me