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.
  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.


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)

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