[Lazarus] custom thread reading file does not respond properly

Sven Barth pascaldragon at googlemail.com
Wed Sep 6 19:34:46 CEST 2017

Am 06.09.2017 17:36 schrieb "Mattias Gaertner via Lazarus" <
lazarus at lists.lazarus-ide.org>:
> On Wed, 6 Sep 2017 17:19:28 +0200
> Sven Barth via Lazarus <lazarus at lists.lazarus-ide.org> wrote:
> >[...]
> > Both Synchronize and Sleep already causes a thread switch (the former
> > it will wait for the main thread to finish processing). Also I already
> > suggested TThread.Yield which is the same as ThreadSwitch.
> > And as he wrote the Sleep(1) solves the problem for him.
> > It's a pity though that this seems to be necessary on Mac OS X :/
> Note that his example works on my Mac with or without
> sleep. Maybe if Andrea posts his full example we may find out more.

Maybe your file is not suitable? I used a /var/log/messages.log file from
one of my Linux computers and with that I can reproduce it with the given

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20170906/f45dc907/attachment.html>

More information about the Lazarus mailing list