Ich habe das mal eingebaut, so wie ich das meine. Kommt eine Execption ProtAsync.
Hier mal der Quellcodeteil:
Delphi-Quellcode:
FtpClient.Connect;
FtpClient.PBSZSize:=0;
FtpClient.PbszAsync;
Writeln(FtpClient.LastResponse);
Sleep(1000);
FtpClient.ProtLevel:='
P';
FtpClient.ProtAsync;
//<-- Hier kommt 'FTP component not ready, state Waiting Response'
Writeln(FtpClient.LastResponse);
Was mach ich nun wieder falsch?!?