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.
Complete thread:
- WaitFor not timing out - Ryan, 2010-05-24, 04:53
- Re: WaitFor not timing out - wodDamir, 2010-05-24, 09:13
- Re: WaitFor not timing out - Ryan, 2010-05-25, 01:48
- Re: WaitFor not timing out - woddrazen, 2010-05-25, 09:40
- Re: WaitFor not timing out - Ryan, 2010-05-26, 04:36
- Re: WaitFor not timing out - Ryan, 2010-05-26, 06:09
- Re: WaitFor not timing out - Ryan, 2010-05-26, 04:36
- Re: WaitFor not timing out - woddrazen, 2010-05-25, 09:40
- Re: WaitFor not timing out - Ryan, 2010-05-25, 01:48
- Re: WaitFor not timing out - wodDamir, 2010-05-24, 09:13