object = null;
System.gc();
try this. you must first set object, that you want to remove, to null. then
you can use System.gc();
===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signo
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 ca
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!!!
//Main Class
public class MainMapa