IE 5.0 hangs when applet window closes in Win98/95
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   sai_Rayanapati
Posted On:   Monday, July 8, 2002 06:03 PM

I am working on a swing java applet which is downloaded and installed onto the end users machine. We download the 1.3 plug-in and run things with it. After loading the applet, when the applet is closed (by the user clicking X), the browser hangs.The process cannot be killed and requires the machine to be restarted to clear it. Surprisingly, there is no "crash" and other browser processes can be started. This occurs on Windows 98, Internet Explorer 5.0, Java VMs 2424 & 3167 and also on Windows 95, IE 4.01 SP1, Java VM 3167. An earlier version of the applet does not appear to exhibit the problem. Investigation I have done: Investigated the java log - this shows that the Ap   More>>

I am working on a swing java applet which is downloaded and installed onto the end users machine. We download the 1.3 plug-in and run things with it. After loading the applet, when the applet is closed (by the user clicking X), the browser hangs.The process cannot be killed and requires the machine to be restarted to clear it. Surprisingly, there is no "crash" and other browser processes can be started.



This occurs on Windows 98, Internet Explorer 5.0, Java VMs 2424 & 3167
and also on Windows 95, IE 4.01 SP1, Java VM 3167.



An earlier version of the applet does not appear to exhibit the problem.



Investigation I have done:
Investigated the java log - this shows that the Applet executes all my cleanup code in the destroy() method.
Compared Source changes from version 1(AWT applet) to version 2 - this is very difficult because there have been many changes and the problem was noticed at the end of development.


I tried to put the clean up code in stop() where I am actually making sure that I am closing all the threads that I used. I even checked if there any more peer threads in my thread group.
Suprisingly, there are. I am making them daemon threads so that java program can die normally. I tried to use even stop(which I am not supposed to) on the threads but that seems to be hanging on the stop itself.
Nothing seems to work.


I don't see this problem in netscape and I tried IE 6.0 and it exits perfectly.



Here is the sample output for the threads which are still active in the thread group of my applet thread.




Thread - AWT-EventQueue-1 Group - http://localhost:8080/pca/-threadGroup



Thread - SunToolkit.PostEventQueue-1 Group - http://localhost:8080/pca/-threadGroup




Thread - TimerQueue Group - http://localhost:8080/pca/-threadGroup



Please let me know if you can provide any help here. Thanks.
   <<Less
About | Sitemap | Contact