Why do loops crash?

Hello There!
I am making a Metronome App because I find there are too much of ads and pretty less room for customization in others. I need 2 things:-

  1. A sound effect for a metronome.
    AND
  2. A loop that won't crash (while loops crash when they are set to infinite).

You created another topic for this same problem:

I'm closing this one.

2 Likes

Why is a wait procedure generally a bad idea?

The model of event processing in App Inventor by @Franklyn_A_Turbak

Please Wait method

All about Loops from the old Forum

and in this Community (Loops)

Regarding the original post of how to run an infinite loop. the general idea is to use a global list as a work queue, driven by a fast Clock Timer.

Here are some projects that run forever like that ...
http://ai2.appinventor.mit.edu/?galleryId=5214268554739712 (Sierpinski Triangle)
ai2.appinventor.mit.edu/?galleryId=6477875229491200 (sieve of Eratothsenes)
https://docs.google.com/document/d/1JrSnPo-7i2l_am4cHC6TgcpKhQVslZowSW4ooWDc7ww/edit?usp=sharing

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.