[Lazarus] Using Lazarus for non-graphical apps

Mark Morgan Lloyd markMLl.lazarus at telemetry.co.uk
Sat Dec 28 22:07:15 CET 2013


Michael Van Canneyt wrote:
> On Sat, 28 Dec 2013, Mark Morgan Lloyd wrote:
> 
>> Can TThread.Synchronize() be used in a non-graphical program (i.e. 
>> invoked from a unix shell and interacting with the user by typed 
>> commands) or does it rely on some LCL magic in the main thread which 
>> can't easily be replicated?
> 
> Synchronize relies on checksynchronize being called regularly from the 
> main thread.
> 
> If you use readln() or so, then it's not useful.

Thanks, I'm reading stdin directly with a tight timeout using fpselect 
so it sounds like I should be able to manage something.

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]




More information about the Lazarus mailing list