<div dir="auto"><div><div class="gmail_quote"><div dir="ltr">Am Mi., 6. Feb. 2019, 18:45 hat Luca Olivetti <<a href="mailto:luca@ventoso.org">luca@ventoso.org</a>> geschrieben:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">El 6/2/19 a les 17:05, Sven Barth via fpc-devel ha escrit:<br>
> Am Mi., 6. Feb. 2019, 11:27 hat Luca Olivetti <<a href="mailto:luca@ventoso.org" target="_blank" rel="noreferrer">luca@ventoso.org</a> <br>
> <mailto:<a href="mailto:luca@ventoso.org" target="_blank" rel="noreferrer">luca@ventoso.org</a>>> geschrieben:<br>
> <br>
> Of course I cannot reproduce the issue with a simpler test program :-/<br>
> <br>
> <br>
> Without a way to test it I can't do anything. So either you need to find <br>
> the issue yourself or you need to manage to create a simpler example.<br>
<br>
Yes, I know :-(<br>
<br>
In my test program I instantiate 4 threads that call synchronize in a <br>
loop (with a Sleep(Random(20)) intermingled), while in the main thread a <br>
TTimer with interval 1 sleeps for 100 ms (to simulate a busy gui).<br>
It's been running for 7 hours already and of course it's still working fine.<br>
<br>
In the "real" program I can provoke the issue after some time (ranging <br>
from a couple of minutes to half an hour).<br>
<br>
With fpc 2.6.4 it's rock solid (or so it seems), so my workaround is<br>
<br>
{$if FPC_FULLVERSION>=30000}<br>
{$ERROR can't use fpc 3.x due to issues with TThread.Synchronize}<br>
{$endif}<br>
<br>
<br>
(that's just in case I inadvertently open the project with lazarus > 1.6.4)<br>
<br>
:-(<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Would you nevertheless try with 3.2, please? Just in case it happens to be the problem I had fixed in regards to Queue(). </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>