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 › loadFont causes OutOfMemoryError
Page Index Toggle Pages: 1
loadFont causes OutOfMemoryError (Read 1555 times)
loadFont causes OutOfMemoryError
Jun 4th, 2010, 7:01pm
 
I've written some simple code that draws moving lines. It works fine until I add this in setup():

font = loadFont("Helvetica-100.vlw);

Then I get this error message:

Exception in thread "Thread-58" java.lang.OutOfMemoryError: Java heap space

I've tried increasing the max memory in Preferences, but I keep getting the error. I tried with a much smaller font but that didn't help either.

Any thoughts on what the problem is?

Thanks!
Re: loadFont causes OutOfMemoryError
Reply #1 - Jun 4th, 2010, 9:00pm
 
close dem quotes :P
Re: loadFont causes OutOfMemoryError
Reply #2 - Jun 4th, 2010, 9:09pm
 
Wow. Now I feel really stupid.

Thanks!
Page Index Toggle Pages: 1