The entire browser will hang. It is hanging because an instance of a JDialog
was created (CustomDialog) when the applet was initialized. But if you
attempt to reload the html page without ever opening the dialog, the plugin
still tries to dispose of the dialog, causing the VM to hang. I've included
a JDB dump (hang.TXT) that indicates which threads are hung.
BTW, I can also reproduce the hang by making duplicate or redundant calls to
dispose the dialog and then trying to refresh the HTML page. If you play
with the Show and Dispose buttons on the applet, you can make the browser
hang (sometimes without even refreshing the html page).
The problem is quite easy to recreate. I've included the files in
dialog_dispose.jar.
1) Put the .class files in a /lib directory off the root of your web server
2) Put the .html file in a /html directory off the root of your web server
3) Launch the applet - e.g. http://myhost/html/HangDialogApplet.html
4) Click the browser refresh button (without opening the dialog)
The problem reproduces on NT4.0 workstation with Java plug-in 1.3.1 and
IE5.5.
was created (CustomDialog) when the applet was initialized. But if you
attempt to reload the html page without ever opening the dialog, the plugin
still tries to dispose of the dialog, causing the VM to hang. I've included
a JDB dump (hang.TXT) that indicates which threads are hung.
BTW, I can also reproduce the hang by making duplicate or redundant calls to
dispose the dialog and then trying to refresh the HTML page. If you play
with the Show and Dispose buttons on the applet, you can make the browser
hang (sometimes without even refreshing the html page).
The problem is quite easy to recreate. I've included the files in
dialog_dispose.jar.
1) Put the .class files in a /lib directory off the root of your web server
2) Put the .html file in a /html directory off the root of your web server
3) Launch the applet - e.g. http://myhost/html/HangDialogApplet.html
4) Click the browser refresh button (without opening the dialog)
The problem reproduces on NT4.0 workstation with Java plug-in 1.3.1 and
IE5.5.