Am 06.09.2017 17:36 schrieb "Mattias Gaertner via Lazarus" <
lazarus@lists.lazarus-ide.org>:
>
> On Wed, 6 Sep 2017 17:19:28 +0200
> Sven Barth via Lazarus <lazarus@lists.lazarus-ide.org> wrote:
>
> >[...]
> > Both Synchronize and Sleep already causes a thread switch (the former
cause
> > 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
code.

Regards,
Sven
-- 
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to