http://forums.livecode.com/viewtopic.php?f=8&t=13090
While playing around with this, I finally found a case where stepping through a handler works fine but running it causes, not an error, but rather a recursion alert. Reliably.
Make two buttons and two fields. Place this into button 1:
Code: Select all
on mouseUp
set the status of this card to "timing"
put random (10) into fld 1
end mouseUp
Code: Select all
local startingTime
on mouseUp
put the milliseconds into startingTime
timeEvent startingTime
end mouseUp
on timeEvent startingTime
if the status of this card = "timing" then put the milliseconds - startingTime into fld 2
if the mouse is down then
set the status of this card to ""
divide fld 2 by 1000
wait 1 with messages --tried this to see if it did anything. It does not.
exit to top
end if
send "timeEvent" && startingTime to me
end timeEvent
I would love to know if anyone else sees this, and further, that this is a replicable example of this issue.
Craig Newman