When does recursion limit bite you?
revolution at derbrill.de
Tue Oct 4 03:34:59 EDT 2011
I am a little stumped atm. From time to time I see a "recursion limit reached" error popping up, even though there is (and this is debateable) no recursion happening in my scripts. At least not obviously. But it seems that one has not understood recursion as long as one has not understood recursion. The handler in question is called from mouseMove. So I guess there is a lot of calls piling up there when the mouse is moved quickly. However, recursion might be a bit misleading here, as the handler does not call itself. Or does the error message also apply for the message queue? Can someone enlighten me? I am currently thinking of flushEvents("mouseMove") at the end of the handler that gets called from mouseMove? Do you think that will work?
All the best,
More information about the Use-livecode