Thanks Nic, but I have already done that.
This is the code....
try
   {
 
     for(int i=0;i<100;i++)
     {
      oos.writeObject("Applet Response sent : chayla"+i);
      System.out.println("i="+i);
      oos.flush();
     }
     oos.close();
     oos=null;
     url=null;
     scon=null;
     System.gc();
    }
    catch(Exception e)
    {
     System.out.println("Sender Exception : "+e);
    }
  }
 
If I comment lines from oos.close() onwards to System.gc() the code does not work.
This is the working code.
It works but I have to keep the connection waiting, so I just wanted to know whether anyone has drawn any
inferences in this matter.
Thanks and best regards,
Kaustubh.
----- Original Message -----
Sent: Monday, January 07, 2002 3:51 PM
Subject: Re: Object Stream Problem

Try flushing the stream.
 
 
Nic Ferrier

Reply via email to