Applet problem in Internet explorer

D

decoy

Hi,
Just wondering if anybody has experianced any problems with
threading of applets in IE (especially when relating to socket writes).
I have an applet that kicks off a thread to read a file and send it
over a socket:

BufferedOutputStream newOut = new BufferedOutputStream(out);
File file = new File(filename);
InputStream in = new FileInputStream( file );

int buffer = 16 * 1024;
byte[] buf = new byte[buffer];
int bytesRead;

while ((bytesRead = in.read(buf)) != -1)
{
newOut.write(buf, 0, bytesRead);
}
newOut.close();
in.close();


The code works fine in firefox, but for IE regardless of how many
sleeps I place in the thread total control goes to the applet and the
browser window stops responding (or even repainting).

Thanks in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top