Hi,

I experience the following error under Netscape 4.6:

# Applet IIprices did not shut down within 30 seconds -- killing it.
# Exception while destroying group: IIprices
java.lang.IllegalThreadStateException
  at java.lang.ThreadGroup.destroy(ThreadGroup.java:673)
* at 
netscape.applet.AppletThreadGroup.destroyItDamnIt(AppletThreadGroup.java:53)
  at netscape.applet.AppletThreadKiller.run(AppletThreadKiller.java:449)
  at java.lang.Thread.run(Thread.java:504)

This error causes Netscape under Win95/98 to hang, but not under linux
2.2.7 (glibc 2.1, redhat 6.0) with the same version 4.6.

My IIprices applet launches a new thread 'tr' (tr being a 'Thread'
variable in the IIprices class) from its 'start' method.
Its 'stop' method closes a socket connection which makes the 'run' method
(of the newly launched thread) return, thus ending that thread.
Additionally, I have put a 'tr=null' in the 'stop' method and a 
'while (Thread.currentThread()==tr)' statement in the 'run' method as
shown in the 'Threads with applets' trail in the Java tutorial.


Any clues?

Please HELP!!!!


Hicham Mouline
ManDrapeau Pte Ltd
69 Tras Street, Singapore 079008
[EMAIL PROTECTED]


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to