Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 May : Re: Indy FTP and large files problem

www.cryer.info
Managed Newsgroup Archive

Re: Indy FTP and large files problem

Subject:Re: Indy FTP and large files problem
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Thu, 18 May 2006 10:52:45

"RGreen" <rgreen@nospam.kemi.umu.se> wrote in message
news:446c474d@newsgroups.borland.com...

>     if FileIsLargerThanTheSizeOfAndInteger() then
>         FTP.IOHandler.LargeStream:= true else
>        FTP.IOHandler.LargeStream:= false;

Why not just set LargeStream to True always?  You don't need to
conditionally set it to true/false on each transfer.

> But I am getting an exception EidIOHandlerRequiresLargeStream
> when the file > 2 Gb in size.

The only time that can ever happen is when the LargeStream property is
False.  That suggests to me that your FileIsLargerThanTheSizeOfAndInteger()
logic is flawed and you are thus always setting LargeStream to False.  But
you did not show any of that code, so there is no way to diagnose your
actual problem.


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive