Has anyone else had any problems with sleep() hanging when used inside a Tk application?
Most of the code uses $widget -> after() to get delays, but the code can "do" other scripts which can contain sleep(). The problem I'm seeing is that quite regularly, sleep(1) does not return. This is in 5.8.8 for win32.
The win32 sleep seems to use MsgWaitForMultipleObjects with a count of 0 and a null list inside a while (1) loop. This is hence reliant on the timeout feature of the windows call (wait for nothing and time out after n ms?). When used with Tk, doing window events, like moving/resizing seems to make it hang. Anyone else seen this? Of course I could be barking up the wrong tree completely and it could be something else. This doesn't seem to happen when running the same code under Linux though.
TIA, Shaun.