Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Jul : Problem with Indy Write(Stream)
| Subject: | Problem with Indy Write(Stream) |
| Posted by: | "Stefan Meisner" (stefan.meisn..@gmx.net) |
| Date: | Thu, 12 Jul 2007 20:23:10 |
Hello!
I do have a problem sending the content of a Stream using Indy 10.
At first I was using
Connection.IOHandler.Write(AStream);
Using this method, the client at some point did stop receiving any data
so I did search through some demos and came across the ImageServer
demo which advised me to use
Connection.IOHandler.WriteBufferOpen;
Connection.IOHandler.Write(AStream);
Connection.IOHandler.WriteBufferClose;
Anyway, the same problem occurs. The client receives several thousand
bytes and suddenly nothing more is being received.
I should add that Client and Server in this case are being executed within
the same process (DUnit Tests) but of course each in it's own thread and
I do have the same problem using Indy 9 so I think I am missing something
general here.
Any advise?
--
Viele Grüsse
Stefan Meisner
www.delphi-online.at
Delphi Remoting Components
Delphi Memory Profiler