[fpc-pascal] Sleep(30) is not reliable?
Karoly Balogh (Charlie/SGR)
charlie at scenergy.dfmk.hu
Wed Jan 24 17:37:32 CET 2018
Hi,
On Wed, 24 Jan 2018, AlexeyT wrote:
> Details:
> Ubuntu 17.4 x64; Lazarus 1.9 trunk, fpc 3.0.2.
> I see IDE call stack like thisĀ when i pause app (during loop forever)
>
Can you run strace on your app, to discover what are the nanosleep
syscalls entry values and what are the return values? That should reveal
if there's a flaw in that SysUtils sleep code loop.
But the other possibility would be that your code never sets FBusy to
false, if it calls Sleep() in a loop?
Charlie
More information about the fpc-pascal
mailing list