David Rose wrote: >> Please try using FtpCli v2.100 or later (beta dated September 2005 or >> later), it contains a fix for a problem uploading small files, and the >> problem may have caused other issues > > Thanks, same problem. It seems that the error is > 500 Control connection closed. Connection aborted (Winsock error #10053)
Hmm, that doesn't help much, have you called Abort somewhere before? Try to print the last error message as well _before_ your call to Abort. You can also check property Connected before calling a method that requires a connection, something like: if not FtpClient1.Connected then begin codesite.send('We have been disconnected ' + FtpClient1.LastResponse + ' ' + FtpClient1.ErrorMessage) dosomething end A brief look at the source, function TFtpClient.WaitUntilReady(): ... if {$IFNDEF NOFORMS} Application.Terminated or {$ELSE} Terminated or {$ENDIF} ((FTimeout > 0) and (LongInt(GetTickCount) > FTimeStop)) then begin { Timeout occured } AbortAsync; FErrorMessage := '426 Timeout'; FStatusCode := 426; Result := FALSE; { Command failed } break; end; .. So if there were a timeout or the application has been terminated Abort is called and you get an ErrorMessage '426 Timeout'. BTW: I'm no expert in using the sync-functions. --- 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