mouse bug?
Posted: Wed Nov 28, 2007 6:39 pm
Under certain conditions a button will not receive mouseUp when the mouse is lifted in the button, and the button will continue to issue a stream of mouseStillDown messages. The hilite stays true. Also, there is no mouseRelease message. I have only seen this in OS X with RR 2.6.1 and 2.8.1.
This occurs when you have a handler like
on getData
write "xxx" to socket "y"
read from socket "y" for 128
put it
send getData to me in 250 milliseconds
end getData
It seems that if the mouse is lifted while in the socket commands, the mouseUp message is never sent and RR thinks the mouse is depressed, even though "the mouse" is "up". Attempting to do non-blocking reads, with
read from socket "y" for 0
does not help. I don't see this problem in Windows standalones generated from the Mac.
Any ideas how to avoid this?
This occurs when you have a handler like
on getData
write "xxx" to socket "y"
read from socket "y" for 128
put it
send getData to me in 250 milliseconds
end getData
It seems that if the mouse is lifted while in the socket commands, the mouseUp message is never sent and RR thinks the mouse is depressed, even though "the mouse" is "up". Attempting to do non-blocking reads, with
read from socket "y" for 0
does not help. I don't see this problem in Windows standalones generated from the Mac.
Any ideas how to avoid this?