Posted By:
Sascha_Bader
Posted On:
Wednesday, August 20, 2003 02:12 AM
Hello Luciano,
maybe you simply forgot to call "dispose()" on the Frame ?
Also one must know that the Java Garbage Collector has some guidelines for his actions. Sometimes it could take a long time for a small object to dumped from the heap.
It might also help to call the System.gc() after disposal of larger amounts of objects.
You can give hints to the GC if you explicitly set Object References to null (e.g. myObj = null; ). Also make sure that there are no cross references of objects. Especially action listeners and similar stuff are often forgotten by the programmer when "disposing" GUI elements.
Greetings,
Sascha