Click to See Complete Forum and Search --> : Netscape hang me up


LuShuguang
October 1st, 1999, 08:56 PM
Hi :
I have a big probem now, I have put page with a applet into my website,
the applet will connect to my server appliction when it starts in browser.
It work perfectly in IE, but that is too bad in Netscape(4.6, 4.7), It will
freeze the browser after runing several times. I have tried to solve this
for a week , no way.
Have you had some way to kill this trouble ?
Any help would be appreciated.

R.Saravanan
October 2nd, 1999, 04:30 AM
Try changing the debug-Level of the Applet - u can do so from the Java Console - hopefully u should see some error messages there.

To change the Debug-Level of the Applet, select Communicator->Tools->Java Console from the Navigator Menu. A window should open out. Press the 1 key to change the Debug level to 1, 2 to change the level to 2 etc. Check out if u happen to get any messages.

Also, would be helpful if u can mention what exactly u developed ur Applet with. IDE, JDK version etc.

Hope that helps,

Rgds,

R.Saravanan

LuShuguang
October 2nd, 1999, 08:31 AM
I don't think that the Java Console will help me, because all Browsers and the java Console are frozn when Applet hang the browser. so at the time you can not switch to the java console and have a look ,what you can do is press "alt_ctrl_del" and delete the task, it will close the browsers and java console screen.

LuShuguang
October 2nd, 1999, 12:44 PM
private static void recursiveRemoveAll(java.awt.Container con) { synchronized(con) {
for(int i=0; i<con.countComponents(); ++i) {
java.awt.Component c = con.getComponent(i);
if(c instanceof java.awt.Container)
recursiveRemoveAll((java.awt.Container)c);
}
con.removeAll();
}
}
public void destroy() {
recursiveRemoveAll(this);
}

I also have the same problem. I have already tried the above method in my applet , but fails, still freeze Netscape(4.6,4.7, win98).
I have a frameset, in center frame I put in applets , in the other frame I put some buttons, by pressing the buttons , the applets run in the center frame in turns. start and close, after several minutes, the Netscape freeze.

If you are kind enough to check my problem exactly ,Please try to
come to my Web site " www.crowncitycasino.com" with Netscape.

Thanks in advance.

Tony Lu

R.Saravanan
October 4th, 1999, 04:52 AM
"After running several times"

Try the Java Console BEFORE it hangs ur m/c up. If u see some kind of error messages here itself, then don't try running it again. Try figuring out based on the message.

And, some more details about what ur applet does would have been helpful.

Rgds,
RS