Maybe there's something I haven't understood about cancelling pending messages when a card stops executing.
If I put...
Code: Select all
on closeCard
repeat until the pendingMessages is empty
cancel item 1 of line 1 of the pendingMessages
end repeat
end closeCard
I'm having a problem where I randomly get an execution error on switching cards ... maybe 1 time in 10. The line nbr in the error message is in a handler which should have stopped executing.
In the repeating handler I have something like...
Code: Select all
if "someRoutine" is not in the pendingmessages then
send "someRoutine" to me in 10 seconds
end if
Many thanks...
--paul