Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Jun : Re: tIdTCP out of memory
| Subject: | Re: tIdTCP out of memory |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Mon, 19 Jun 2006 10:30:51 |
"Francisco Ruiz" <francis@cicar.com> wrote in message
news:4496d0d2@newsgroups.borland.com...
> I'm trying to 'put' a 4GB file with TIdFTP
Which specific build of Indy 10 are you using?
> using file and stream methods, in both cases I get a
> Exception OutOfMemory.
Sounds like you are probably using an older build. There was a problem in
the older builds where TIdIOHandler.Write(Stream) was trying to buffer the
entire stream into memory before sending it. That has already been
corrected.
> Of course using ADataChannel.IOHandler.LargeStream in OnDataChannelCreate.
In the current snapshot, you do not need to do that anymore. You can set
LargeStream to True on the main connection and it will automatically be
picked up on all transfer connections.
Gambit