Author Topic: New problem with the SLEEP command in Oct 30 Dev Build  (Read 2842 times)

0 Members and 1 Guest are viewing this topic.

Offline hanness

  • Forum Regular
  • Posts: 210
    • View Profile
New problem with the SLEEP command in Oct 30 Dev Build
« on: November 07, 2019, 06:58:14 pm »
I'm wondering if the fix to the previous problem that I reported a few days ago caused this problem....

The SLEEP command will now always wait for a key to be pressed even if a sleep time is specified. For example, if I issue the command "SLEEP 5", the program will not proceed after 5 seconds. It will wait forever for a key press.

Tested on the October 30 Development Build

Sample code:

_______________

$CONSOLE:ONLY
_DEST _CONSOLE: _SOURCE _CONSOLE

PRINT "This is a test. The program should continue in 5 seconds."
SLEEP 5
PRINT "We should reach this point 5 seconds after the first message but that does not happen."
END

_______________

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: New problem with the SLEEP command in Oct 30 Dev Build
« Reply #1 on: November 07, 2019, 07:00:59 pm »
I just forgot to code in for the timer event.  I don’t usually SLEEP time, so I completely overlooked it.  I’ll add the functionality there in the next few days or so.  Thanks for bringing it to my attention.
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline hanness

  • Forum Regular
  • Posts: 210
    • View Profile
Re: New problem with the SLEEP command in Oct 30 Dev Build
« Reply #2 on: November 07, 2019, 09:50:39 pm »
Thanks, Steve. Much appreciated.