Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Dec : Re: Looking for a good FTP component
| Subject: | Re: Looking for a good FTP component |
| Posted by: | "Jamie Dale" (dale_jam..@yahoo.com) |
| Date: | Wed, 13 Dec 2006 14:58:45 |
"Boian Mitov" <mitov@mitov.com> wrote in message
news:457e4403$1@newsgroups.borland.com...
> Hi folks,
> and in Indy a simple Put command when the component is_not_connected
> generates Access Violation (hardly encouraging sign).
Yes I have one:
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;
> I can hardly put my trust into a component that does not handle such basic
> situations. It makes me wander what else it doesn't do right.
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.
There are a few bugs with Indy but what you have described is certainly not
one of them.
Regards
JD