David Rose wrote:
> (sorry if you already got this - I didn't get an auto-acknowledgment from
> the list, so I don't know if it was posted).
> 
> I'm having a problem with the Ftpcli component (V2.99 D5).
> 
> I'm uploading several files to an FTP site, at the end of each upload I
> use the following code
> 
>     codesite.send('trying quit');
>     if not FtpClient1.Quit then
>     begin
>     codesite.send('bad quit');
>       FtpClient1.Abort;
>       Exit;
>     end;
> 
> 99 times out of 100 the quit command works correctly, but on the other
> time FTPClient1.Quit returns false. The time between the two codesite
> messages is about 300ms, so I'm presuming that it's not due to a time out.
> What else can result in this function returning false so quickly ?

Try codesite.send(FtpClient1.LastResponse) it will probably tell you
the reason why Quit failed.

---
Arno Garrels [TeamICS]
 
> regards
> 
> David
> 
> ############################################################
> David Rose
> 
> Navigator Systems Ltd,
> Network Business Centre, 3 Gloucester Street,
> Bath, BA1 2SE,UK
> 
> Main Tel: +44 (0)7000 NAVSYS (628797)
> Fax: +44 (0)7000 NAVFAX (628329)
> 
> Company Email: [EMAIL PROTECTED] (Private e-mail on request)
> 
> CONFIDENTIALITY NOTICE
> 
> The contents of this e-mail are confidential to the ordinary user of
> the e-mail address to which it was addressed and may also be
> privileged.  If you are not the addressee of this e-mail you may not
> copy, forward, disclose or otherwise use it or any part of it in any
> form whatsoever.  If you have received this e-mail in error please
> e-mail the sender by replying to this message.
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to