WaitFor not timing out (General questions)
Hi,
I am having trouble with the waitFor method not timing out.
I have a situation where when a lock is encountered on our database it sends out the bell character (char 7) every second in a loop until the lock is released.
I am using the waitFor method to search for a character and timeout if it does not find it withing 30 seconds, however if we encouter this locked condition the timeout never occurs and our program gets stuck in the waitFor method.
I assume what is happening, is that the waitFor method has a loop which continually calls receive ? In this case, receive will keep getting bells every second so no timeout happens. The char 7 is non ANSI so it probably also gets stripped, so we are stuck in waitFor until i manually release the lock.
Is there a workaround or fix for this problem?
Thanks,
Ryan.