Mail Archives: djgpp/1999/09/01/15:26:07
Hello,
I used the following source-code:
---------------------
#include <stdio.h>
#include <dos.h>
int main()
{
printf("Before delay.\r\n");
delay(1000);
printf("After delay.\r\n");
exit(0);
}
-------------------
When running under OS/2 4.0, fixpack 10.. if the user presses PAUSE
while delay() is in effect, and attempts to unpause a second later, the
entire DOS session hangs.. It seems that delay() gets into an endless loop
due to the fact that it missed the target time it was waiting for. While the
program was paused, the 'target-time' was missed, and when the system was
unpaused delay() kept on waiting for the target-time which will not be
reached for another 24 hours .. That is an assumption on my part. I do not
actually know what is at fault but I do know the following for a fact:
1) OS/2 4.0, fixpack 10, 11 all hang as mentioned above (even on different
machines)
2) Win98 does NOT hang
Gili
- Raw text -