|
Author |
Topic: uh... i made p5 freeze? :P (Read 395 times) |
|
Martin
|
uh... i made p5 freeze? :P
« on: Oct 12th, 2003, 10:00am » |
|
there was the applet freezing problem by ed and now, p5 freezes with my lil piece of code... does anyone have any idea why? i suspect it's a memory thing... here... http://decode.ateneo.edu/martin/philstock.pde the app works fine without me drawing the ellipses... but do they consume that much memory?
|
|
|
|
arielm
|
Re: uh... i made p5 freeze? :P
« Reply #1 on: Oct 12th, 2003, 11:59am » |
|
seems to me that the problem is not related to ellipses... some thoughts: - what if you draw anything else than ellipses (or even use println() instead? - what if you put grabData() within draw()? - what if you read from a local file using loadStrings() instead of you custom io loop? hth
|
Ariel Malka | www.chronotext.org
|
|
|
Martin
|
Re: uh... i made p5 freeze? :P
« Reply #2 on: Oct 12th, 2003, 1:51pm » |
|
hi ariel, thanks for your reply... > what if you draw anything else than ellipses (or even > use println() instead? Code: void draw() { stuffer(); ellipseMode(CENTER_DIAMETER); noStroke(); fill(0); for( int i = 0; i < v2.size(); i++ ) { println( (String) v2.elementAt( i ) ); } } |
| works perfectly well. > what if you put grabData() within draw()? doesn't make a diff. > what if you read from a local file using > loadStrings() instead of you custom io loop? hmm... i can use that but it doesn't really make much of a difference since i'm just using a single string. thnkx.
|
|
|
|
fry
|
Re: uh... i made p5 freeze? :P
« Reply #3 on: Oct 14th, 2003, 10:07pm » |
|
prolly a runtime exception, see the last post i made on ed's message. there's a problem in recent releases that locks things up if you have an error while running the code in the environment.
|
|
|
|
Martin
|
Re: uh... i made p5 freeze? :P
« Reply #4 on: Oct 16th, 2003, 2:27pm » |
|
ah... ok.
|
|
|
|
|