FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Programs
(Moderators: fry, REAS)
   uh... i made p5 freeze? :P
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: uh... i made p5 freeze? :P  (Read 395 times)
Martin

122417302122417302martingomez_listsmg1ph WWW Email
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

WWW
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

122417302122417302martingomez_listsmg1ph WWW Email
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


WWW
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

122417302122417302martingomez_listsmg1ph WWW Email
Re: uh... i made p5 freeze? :P
« Reply #4 on: Oct 16th, 2003, 2:27pm »

ah... ok.
 
Pages: 1 

« Previous topic | Next topic »