trapping recursion
Richard Gaskin
ambassador at fourthworld.com
Wed Oct 30 12:55:44 EDT 2013
Dr. Hawkins wrote:
> As I've gotten fancy with storing a location on openField, then rewriting
> the card if needed, I'm hitting recursion crashes from revPalletManager (or
> some such). This is a simple "stopped at 4000 recursion" with no option
> but OK, and no identification of where my code started.
>
> Does anyone have a suggestion for trapping this?
>
> To make matters worse, I apparently can't successfully run the debugger
> through openField, as I can never enter a field successfully--once the
> debugger pauses, it loses focus. And if I want to set it for the next
> field, clicking the script window to set a checkpoint triggers closeField .
I haven't seen recursion caused by closeField, but I have seen another
case of recursion with the IDE.
The IDE team couldn't reproduce the error, and indeed I found that if I
removed once of my own tools from the mix the problem went away, so the
report was closed as "Not a bug":
<http://quality.runrev.com/show_bug.cgi?id=11194>
That said, the issue I found never happened in the MC IDE, so perhaps
you and I have stumbled across a similar issue with something in the IDE
which doesn't cause recursion on its own but is prone to recursion in
conjunction with other valid activities.
If you can come up with a recipe please report it, and let me know the
RQCC # so I can follow it.
Thanks -
--
Richard Gaskin
Fourth World
LiveCode training and consulting: http://www.fourthworld.com
Webzine for LiveCode developers: http://www.LiveCodeJournal.com
Follow me on Twitter: http://twitter.com/FourthWorldSys
More information about the use-livecode
mailing list