Bug 460 : while(true) { } freezes processing
Last modified: 2007-02-21 04:53




Status:
RESOLVED
Resolution:
WONTFIX -
Priority:
P2
Severity:
normal

 

Reporter:
markus
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2006-11-28 07:25
i have encountered a very bizarre bug.. i have a method which looks
something like the following:

displayObjects() // (called from draw() )
{
updateScreenComponents();

while(true)
{

}

}

updateScreenComponents() does never run and processing freezes. when
removing the while block it works as intended.. (this is in windows version
only, same source has been tested with linux-processing where it works
perfectly)

tested on pentium mobile centrino 1.6ghz with 700mb ram (windows xp)
Additional Comment #1 From markus 2006-11-28 07:26
this is using latest version of processing
Additional Comment #2 From fry 2006-11-28 09:36
that\'s your own bug. it\'s called an infinite loop. if you put the code into
a tight loop that it can never exit from, you\'re going to hose the machine
of its resources. the same will be true for any other language, java, c++, etc.
Additional Comment #3 From fry 2006-11-28 13:06
*** Bug 461 has been marked as a duplicate of this bug. ***
Additional Comment #4 From fry 2007-02-21 04:53
*** Bug 521 has been marked as a duplicate of this bug. ***
Additional Comment #5 From fry 2007-02-21 04:53
*** Bug 520 has been marked as a duplicate of this bug. ***