How to destroy applet when browser leaves document
Posted on 1997-08-17
I have made an applet which works fine. Except that when the same page is called in another browser window, the applet interferes with the applet in the original window. This happens even when the original window is closed, or now contains a different document without the applet.
I have checked some things, and the main thing I found out was that the applet is not destroyed when the browser leaves the document. It remains in memory !!
My question is how do i make the browser destroy the applet when the browser leaves the document with the applet.
I suspect that the browser keeps all the applet in memory as long as the applets are not explicitely destroyed. This might explain memory problems after visiting a couple of pages with heavy java-applets.