Re: Clean up in Applet

Hi Muz,

> I was writing an applet to display animations in a browser using VisAD.
> However, looks like I have problem to clean up the REALTYPE variables.
> The REALTYPE variables can only be destroyed when I close the parent browser. 
> I am wondering how that happen, and what should I do in the applet destroy() 
> method?

Is this still a problem if you replace RealType constructors
with RealType.getRealType() calls?

There is a HashMap of all ScalarTypes (includinging RealTypes),
but it uses weak references so the RealTypes should be garbage
collected when there are no more strong references to them.

Good luck,

  • 2003 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: