while loop crash

Bugs will be moved here once resolved.

Post » Sat Mar 01, 2014 4:20 pm

Problem Description
adding a while loop makes the preview window in any browser crash it dose not matter if the program is blank or not if it helps I'm using windows 8.1 and i tried it on chrome and explorer if you insert the keyboard and tell it when any key activate the while loop it will crash after you press the selected key

open a blank document add a while loop and run it

it will crash any browser
B
2
Posts: 2
Reputation: 154

Post » Sat Mar 01, 2014 10:20 pm

Without seeing your code.. Are you sure you do know how While loops are supposed to work? It may well be that I'm wrong, but I just expect you have created an infinite loop and thus got stuck forever?
Need help? Upload .capx file with your question.
B
16
S
4
G
2
Posts: 233
Reputation: 2,560

Post » Sun Mar 02, 2014 9:33 am

What's the use of just one event "while" on the event sheet?
Does that make any sense?
*Game opens*
Event sheet:
while

.....
I will not let you reach the sisters
Nature Forums
B
11
S
5
G
2
Posts: 496
Reputation: 2,306

Post » Fri Mar 07, 2014 2:29 pm

Yep. The game is definitely stuck in an infinite loop. Honestly, there isn't much use for While since every non-trigger event already fires every tick. And for your While Key is down, take out the While block. the event already fires every tick that the key is down.
B
47
S
14
G
7
Posts: 603
Reputation: 8,141

Post » Fri Mar 07, 2014 5:09 pm

Closing, please follow the bug report guidelines. Note if you use the while loop incorrectly you will create an infinite loop, which will hang the browser and is not a bug, just a consequence of making an infinite loop.
Scirra Founder
B
397
S
236
G
88
Posts: 24,423
Reputation: 194,560


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests