<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<blockquote type="cite">
<div class="moz-text-plain" wrap="true" graphical-quote="true"
style="font-size: 13px;" lang="x-western">
<pre wrap="">On Wed, 09 Dec 2015 12:17:55 +0100
Michael Schnell <a class="moz-txt-link-rfc2396E" href="mailto:mschnell@lumino.de"><mschnell@lumino.de></a> wrote:
</pre>
<blockquote type="cite" style="color: #3333FF;">
<pre wrap="">On 12/09/2015 11:45 AM, Mattias Gaertner wrote:
</pre>
<blockquote type="cite" style="color: #3333FF;">
<blockquote type="cite" style="color: #3333FF;">
<pre wrap="">Application QueuAsyncCall is implemented using TThread.Queue.
</pre>
</blockquote>
<pre wrap="">What is wrong with the current implementation?
</pre>
</blockquote>
<pre wrap="">Nothing. But it uses another Queue. Queue handling needs OS calls for
waiting. I want to avoid to do any OS Calls so I simply use what the
RTL offers for exactly this purpose.
</pre>
</blockquote>
<pre wrap="">Please take a look at the NoGUI widgetset. It does not use another
Queue.
</pre>
<blockquote type="cite" style="color: #3333FF;">
<pre wrap="">[...]
</pre>
<blockquote type="cite" style="color: #3333FF;">
<pre wrap="">NoGUi has already a dedicated mainthread, TThread.Synchronize,
TThread.Queue, Application.ProcessMessages,
Application.QueueAsyncCall. Only SendMessage and TTimer are missing.
</pre>
</blockquote>
<pre wrap="">[...]
In fact I would not like to try to re-use the NoGUI code,
</pre>
</blockquote>
<pre wrap="">What code? It only contains the basic methods to let it compile. Any LCL interface must have at least that.
</pre>
<blockquote type="cite" style="color: #3333FF;">
<pre wrap="">especially as
I seem to remember that I read about several shortcomings of same (I did
not yet check myself). Is there a documentation on what exactly NoGUI is
supposed to provide ?
</pre>
</blockquote>
<pre wrap="">The NoGUI allows to compile a LCL application without a GUI. It has a few lines of code to connect the RTL.
</pre>
<blockquote type="cite" style="color: #3333FF;">
<pre wrap="">(I suppose this "Service Application" might replace "noGUI", but of
course same should stay in place for legacy projects. )
</pre>
</blockquote>
<pre wrap="">I guess implementing TTimer and SendMessage only needs a few hundred
lines. I see no problem adding that to the NoGUI widgetset.
</pre>
</div>
</blockquote>
As requested (and decent indeed), I herewith start a new thread and
will answer tomorrow. <br>
<br>
Thank for caring, <br>
<br>
-Michael<br>
</body>
</html>