Problem! program generates a password, works but crashes

I tried to fix the problem, but I couldn't find a solution, and I don't know what the cause of the problem is.

I think it depends on one of these two blocks

thank you

If you are asking for help, I recommend you to make it as easy for others to be able to help you ...
You probably will get more feedback then...

which means in your case post a screenshot of your relevant blocks...

To download the aia file, upload it to App Inventor, open it, do some bug hunting for you, etc... this takes time, and most people will not do that...
Thank you.

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

thanks for the advice!
I changed the question by adding the two main blocks...

from How to ask a question (open new topic)

Note : Make it as easy as possible for those who are helping . Especially:
→ Write in English and
→ use English blocks (set the language in the Designer - temporarily - in English).

Taifun

1 Like

you are using several while loops, which might block the user thread... see also The model of event processing in App Inventor by Lyn

you might want to try one of these extensions

or use clock components to replace the while loops

Taifun

Can you give me an example? :thinking:

I don't find how to download them :face_with_head_bandage:

a while loop like this

a = 1
while a < 10
  a = a + 1

can be replaced by a fast running clock component like this
(start with Clock.Enabled = false in the designer settings)

a = 1
Clock.Enabled = true (to start the clock)

ClockTimer event:

if a < 10
then a = a + 1
else Clock.Enabled = false (to stop the clock)

Taifun

2 Likes

Global passista is not a List. It is a String as you have used join block to join global a, global b, global c, global d which returns a text String.

after your advice, I changed the while loops with the clock, and everything works without errors.

ty @Taifun

1 Like

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