that 500x500 array doesnot help a bit.If poosible lower down.
And make remove destroy the JMainFrame

For solve the "out of memory", besides a clean code management, there are 2
easy solutions:

* Solution 1:
 add a -Xmx parameter, this way
java -Xmx380m MyClass

where 380m means the java memory can grows up to 380m.
try java -X <enter> to see more result.

* solution 2
Buy more RAM and improve -Xmx usage

Alessandro


--- "Rafael A. Osuna" <[EMAIL PROTECTED]> escreveu: > When i try to use this
code in two times or i call the class "MapaAltura"
> in two times, i receive the OutOfMemory message. I dont know what to do,
> to clean up or clear the SimpleUniverse when i call the class for second
> time.
>
> this is the code. Urgent please!!!
>
>

______________________________________________________________________

Yahoo! Mail - agora com 100MB de espaço, anti-spam e antivírus grátis!
http://br.info.mail.yahoo.com/

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to