<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 07/21/2016 03:44 PM, Mattias
Gaertner wrote:<br>
</div>
<blockquote cite="mid:20160721214449.613c4c26@limapholos.matflo.wg"
type="cite">
<pre wrap="">On Thu, 21 Jul 2016 15:35:51 -0400
Donald Ziesig <a class="moz-txt-link-rfc2396E" href="mailto:donald@ziesig.org"><donald@ziesig.org></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On 07/21/2016 03:21 PM, Mattias Gaertner wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On Thu, 21 Jul 2016 15:05:17 -0400
Donald Ziesig <a class="moz-txt-link-rfc2396E" href="mailto:donald@ziesig.org"><donald@ziesig.org></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">[...]
Question: Do console mode programs have a "run loop"?.
</pre>
</blockquote>
<pre wrap="">Synchronize requires that your main thread calls CheckSynchronize from
time to time. The LCL does that in its loop.
</pre>
<blockquote type="cite">
<pre wrap="">[...]
</pre>
</blockquote>
<pre wrap="">Mattias
</pre>
</blockquote>
<pre wrap="">
That made it work! Thank you. (Where is this documented?)
</pre>
</blockquote>
<pre wrap="">
In CheckSynchronize itself, but not in the wiki multithread tutorial. I
added it there.
Mattias
</pre>
</blockquote>
<p>Cool! Thanks again.<br>
</p>
<p><br>
</p>
<p>Now back to TFPTimer. I got it working with a hack in
TFPTimerThread.Execute:</p>
<p><br>
</p>
<p>As implemented it calls <tt>Synchronize(@T.Timer).</tt> This
does <b>not</b> work. In desperation I hacked it to call <tt>Queue(@T.Timer)</tt>
and it works perfectly. I understand the difference between
Synchronize and Queue, but I sure don't know why Queue works and
Synchronize doesn't in this case. (Only on the PI, I didn't try
this on Linux Mint).<br>
</p>
<p><br>
</p>
<p>Don<br>
</p>
</body>
</html>