I know why while loops will crash an application. What I don’t get is why MY while loops crash the game, no matter how “correct” I set the condition. Here is an example. According to this blueprint, when I hold down the “]” key the loop is supposed to print “looping now” until I let go. The condition “dialboolup” is set to 1/true while the button is being held and is set to 0/false when released. This is the condition for the while loop to stop looping. Instead it just crashes the game without printing anything to the screen. I don’t get it.
That’s funny, i get the same thing. using 4.2
Unreal engine works on each frame basis, all events are checked on every frame, if you loop a thread it wont be able to finish the frame and locks up whole engine, as engine wont able to reach new button check routine so it wont able to escape that loop as code wont able to check if button got relesed. i know blueprint got loop limit so you can’t lock up the engine, so it might be fail of it, but even with it you would have a problem.
Use delay nodes maybe, it will fork then thread and unlock rendering process where your loop will be in susspention until delay ends.