We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › clearing heap on applet exit
Page Index Toggle Pages: 1
clearing heap on applet exit? (Read 310 times)
clearing heap on applet exit?
Jan 18th, 2009, 2:53am
 
Hi everyone,

I have an processing applet online that takes up a good chunk of, but not all of, the heap space (~40MB). It works when you start it up a browser. But since browsers don't quit running Java until they are completely closed, the applet gets an OutOfMemoryError whenever I navigate away from the applet and then come back to it (as if the previous instance of the applet's data was still there hogging up memory).

Is there any way within processing/java to clear the heap space on applet exit so that this doesn't happen??

Thanks for any advice,
Dan
Page Index Toggle Pages: 1