[Lazarus] custom thread reading file does not respond properly
Mattias Gaertner
nc-gaertnma at netcologne.de
Wed Sep 6 17:36:13 CEST 2017
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 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.
Mattias
More information about the Lazarus
mailing list