Infinite loops !

René Micout rmicout at
Fri Feb 1 05:12:46 EST 2008

Thank you for your reply. I think you are right. I will take your  
advice and change my code accordingly. In reality it is a bit  
complicated because there are many loops included in each other (just  
as some drawings of MC Escher), I am not a professional programmer, I  
am rather a creator of applications, it has been a little  
difficult ... But with a little concentration I think I can get  
there ...
I had a 2nd point in my question: is it possible to change the  
controls of my loop while it runs?
Rene from Paris

Le 1 févr. 08 à 00:16, Sarah Reichelt a écrit :

> On Feb 1, 2008 2:11 AM, René Micout <rmicout at> wrote:
>> Hello from Paris,
>> I have a question about infinite loops.
>> I make a musical arpeggiator (a virtual replica Reactogon see video :
>> reminds-me-of-star-trek/), the work is progressing but I have 2
>> encountering problems: 1 / When I start an endless loop (it is the
>> goal of the program, I stop it by pressing a key) it stop after few
>> time with the following message: "Handler: can't find handler" while
>> it worked for 150 or 200 times...
>> 2 / It is not possible to intervene at any time in the running of the
>> program to change certain provisions
> Hi Rene,
> I think using infinite recursions is a bad idea. Even if you set the
> recursionLimit to a high number, if the program is left running for
> long enough it will reach that limit. I would suggest you use "send"
> instead. Try something like this:
> on doLoop
>    -- see if the key is presses to stop the loop and if so, exit here
>    -- read the data from your controls to see if anything has changed
>    -- do whatever processing is needed
>    -- send "doLoop" to me in 1 second (or whatever time interval  
> you want)
> end doLoop
> HTH,
> Sarah
> _______________________________________________
> use-revolution mailing list
> use-revolution at
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:

More information about the Use-livecode mailing list