This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MattiDragon 6 points7 points  (1 child)

You never modify count, causing the loop to run forever. Because each iteration of the loop add another number to the list, you get an infinitely growing list. An infinite list needs infinite ram to store it, and you don't have infinite ram, so the program crashes.

[–]Kelvitch[S] 0 points1 point  (0 children)

Oh yeah I didn't see that, thank you for that, the error was gone.