Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Dec : Re: Looking for a good FTP component

www.cryer.info
Managed Newsgroup Archive

Re: Looking for a good FTP component

Subject:Re: Looking for a good FTP component
Posted by:"Boian Mitov" (mit..@mitov.com)
Date:Wed, 13 Dec 2006 12:40:27

     Hi Jamie,

This the the problem at least until version 10.0.52. I will test 10.0.6
soon. If you directly call IdFTP1.Put( 'c:\CoinsLow.bmp', 'CoinsLow.bmp'
); without checking IdFTP1.Connected it will AV. This is a bug. It
should report not connected not throw AV. This may have been fixed in
the latest Beta. I will check, although this will be the 5th Indy
version I will be checking :-( . I probably will not use the component
but I still hope to help fixing the bugs I discover.
   Cheers,
     Boian


Jamie Dale wrote:
> If IdFTP1.Connected then //Make sure it's actually connected first..
>    begin
>    //If connected, do the transfer.
>    IdFTP1.Put( 'c:\CoinsLow.bmp', 'CoinsLow.bmp' );
>    end;
>
> Nothing wrong with the component. You simply need to check that the
> component is connected first. If it isn't then the code above will not
> execute Put() attempt.

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive