[Lazarus] What is the future of NoGUI widget set?
Michael Schnell
mschnell at lumino.de
Thu Jan 27 11:52:01 CET 2011
On 01/26/2011 07:43 PM, Frank Church wrote:
>
> Pipes are a new area for me, are there any Lazarus demos of their usage?
Pipes in Linux are very easy. You just write to a file in one program
and read from it in another. If you create a pipe in the file system
with that name before, the programs are connected.
If the pipe contains less bytes than the program tries to read, the read
access blocks.
If you don't want that the complete program blocks, you need to do the
reading in a thread. Here noGUI might be problematic as the usual
Lazarus inter-Thread communication (e.g. TThread.Synchronize and
TApplication.QueuAsyncCall) is not provided with this WEidget Set.
(AFAIK, there even is no free running main thread, noGUI just starts,
does it's thing and terminates. So you would need to implement your own
Event mechanism directly using OS API calls. (That is why an "active"
noGUI Widget type would be really nice.)
-Michael
More information about the Lazarus
mailing list