Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi List index out of bounds (1) (https://www.delphipraxis.net/32034-list-index-out-bounds-1-a.html)

Kreilon 17. Okt 2004 19:39


List index out of bounds (1)
 
Jedesmal wenn ich mein Programm starte und auf den Button Klicke bei dem folgendes passieren sollte:

Delphi-Quellcode:
procedure TForm1.Button37Click(Sender: TObject);
begin
  if IdFTP1.Connected then try
    if TransferrignData then IdFTP1.Abort;
    IdFTP1.Quit;
  finally
    Edit9.Text := '/';
  end
  else with IdFTP1 do try
    Username := Edit10.Text;
    Password := Edit23.Text;
    Host := Edit4.Text;
    Port:=21;
    Connect;           {<--------------- Fehler liegt hier}
    Self.ChageDir(Edit9.Text);
    SaveFTPHostInfo(Edit9.Text, 'FTPHOST');
  finally
    if Connected then begin
    end;
  end;
end;
Dann kommt folgender Error: "... class Elisterror. List index out of bounds (1). Process stopped."
Dieser Teil ist übernommen vom Indy-Client-Beispiel. Ich bin 100% sicher, dass ich Edit4.Text nicht mit Edit10 oder Edit23.Text verwechselt habe (mehrere Male überprüft).
Ich kriege einfach nicht heraus, wo der Fehler liegt.

Mario 18. Okt 2004 07:59

Re: List index out of bounds (1)
 
Vielleicht kann er nicht sauber verbinden? Probiere mal, ob sich was ändert, wenn Du den Passive-Mode aktivierst.


Alle Zeitangaben in WEZ +1. Es ist jetzt 08:25 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz