In a trivial experimental app I have a loop including a Sleep(1000). The loop is effectively infinite, but I expected to be able to click the (sole) button on Form1 to terminate the program.
But I found that the Sleep() (and the rest of the loop, which just makes a sound) is effectively non-interruptible, and I had to include a DoEvents in the loop before I could break in.
I found this mildly surprising. Is there no way to have a pause that can be interrupted?
Mike.
But I found that the Sleep() (and the rest of the loop, which just makes a sound) is effectively non-interruptible, and I had to include a DoEvents in the loop before I could break in.
I found this mildly surprising. Is there no way to have a pause that can be interrupted?
Mike.