Posted By:
Andrew_Milkowski
Posted On:
Monday, February 11, 2002 01:51 PM
first I am including java console thread display: (note several main threads created) (agent and OS used: IE6, win2000) Pri 5 AWT-EventQueue-0 Pri 5 AWT-Windows Pri 10 TaskManager notify thread Pri 5 main Pri 5 main Pri 5 main Pri 5 main Pri 5 main Pri 5 main Pri 5 main Pri 5 main Pri 5 Global Task Manager Thread #0 Pri 5 Global Task Manager Thread #1 the application consists of one main applet that via LiveConnect call calls javascript window.open method the window that the main applet opens is an html page containing an Applet with the
More>>
first I am including java console thread display:
(note several main
threads created)
(agent and OS used: IE6, win2000)
Pri 5
AWT-EventQueue-0
Pri 5 AWT-Windows
Pri 10 TaskManager notify thread
Pri
5 main
Pri 5 main
Pri 5 main
Pri 5 main
Pri 5 main
Pri 5
main
Pri 5 main
Pri 5 main
Pri 5 Global Task Manager Thread #0
Pri 5
Global Task Manager Thread #1
the application consists of one main applet
that via
LiveConnect call calls javascript window.open method
the
window that the main applet opens is an html page
containing an Applet with
the following code:
import java.awt.*;
import
java.applet.*;
public class TestApplet extends Applet {
public
synchronized void init() {
}
public synchronized void stop()
{
}
public synchronized void destroy() {
System.out.println("destroy
called");
System.gc();
}
}
every time the window with this
applet is created,
and then closed (via the x), a new main thread
is
created but never destroyed,
the creation of theses "main" threads just goes
forever on
is there anything one can do to release these
threads
(in the TestApplet destroy method for example) ?
Appreciate
any comments/explanation on this topic!
regards
<<Less