K
karambol
Hi,
There is a situation:
An applet in start() method creates a socket and two threads to read from
and write to it.
When I open the page, let the applet initialize and then close, everything
is ok.
The problem comes up, when I quickly click "back" in IE just after the
applet starts initializing (sometime about when the Java icon is shown and
the applet is not yet initialised, and its controls are not yet visible).
The problem is, that IE is not calling stop(), as supposed, so the applet
keeps initializing, although it's not visible and I'm watching another site
(due to clicking "back").
Question:
How to stop the threads and close the socket, when user quickly clicks
"back", and applet keeps initializing itself?
There is a situation:
An applet in start() method creates a socket and two threads to read from
and write to it.
When I open the page, let the applet initialize and then close, everything
is ok.
The problem comes up, when I quickly click "back" in IE just after the
applet starts initializing (sometime about when the Java icon is shown and
the applet is not yet initialised, and its controls are not yet visible).
The problem is, that IE is not calling stop(), as supposed, so the applet
keeps initializing, although it's not visible and I'm watching another site
(due to clicking "back").
Question:
How to stop the threads and close the socket, when user quickly clicks
"back", and applet keeps initializing itself?