Doesn't TFileStream imply that the data will be transferred to the disk. I want to avoid any disk activity and get the data as fast as possible into the application. The size of any data transfer will only be a few tens of kilobytes at most.
Graham -----Original Message----- From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of Francois PIETTE Sent: 16 April 2010 05:56 To: ICS support mailing Subject: Re: [twsocket] Multiple FTP Clients > easier to use the multiple FTP clients to solve my problem. > > The first attempt seems to have a problem (problem something stupid I'm > doing). I have 2 FTP clients and created 2 memory streams. If both FTP > clients connect and then disconnect, when I free the second memory stream > I > get an error. If only one FTP client connects and disconnects, I can free > both memory streams. > > Obviously doing something dim. There is a bug in your code obviously. You are probably referencing the wrong stream. btw: Usually one use TFileStream for FTP because you have potentially very large files which could result in out of memory errors if you use a TMemoryStream. -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be