Autor Beitrag
DelphiDelphin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 181



BeitragVerfasst: Mo 11.04.05 17:35 
Hi folgende fehlermeldung kommmt imer beim connecten Connection Closed Gracefully
Hier der sourcecode was ist Falsch ???
ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
unit Unit3;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, Borland.Vcl.StdCtrls, System.ComponentModel, IdBaseComponent,
  IdComponent, IdTCPConnection, IdTCPClient, IdExplicitTLSClientServerBase,
  IdFTP, Borland.Vcl.FileCtrl;

type
  TForm3 = class(TForm)
    IdFTP1: TIdFTP;
    Edit1: TEdit;
    Edit2: TEdit;
    Edit3: TEdit;
    Edit4: TEdit;
    Edit5: TEdit;
    FileListBox1: TFileListBox;
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
    procedure IdFTP1AfterClientLogin(Sender: TObject);
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

var
  Form3: TForm3;

implementation

{$R *.nfm}

procedure TForm3.IdFTP1AfterClientLogin(Sender: TObject);
begin
Idftp1.Host:= (edit1.Text);
idftp1.Username:= (edit2.text);
idftp1.Password:= (Edit3.Text);

idftp1.ChangeDir(Edit4.Text);



end;

procedure TForm3.Button1Click(Sender: TObject);
begin
Idftp1.Connect;
Filelistbox1.Directory:= (idftp1.DirFormat);
end;

end.
fvolk
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 203

Win XP (Home & Pro)
Delphi 2005 Pers
BeitragVerfasst: Mo 11.04.05 18:15 
"Connection closed gracefully" ist nur bedingt als Fehler zu betrachten. Die Meldung sagt aus, dass die Verbindung von der Gegenstelle geschlossen wurde: www.swissdelphicente...showarticle.php?id=1.

Ob das (Filelistbox1.Directory:= (idftp1.DirFormat);) geht, weiß ich ehrlich gesagt nicht, habe aber auch jetzt nicht die Zeit, es zu testen.

_________________
Nichts auf der Welt ist so gerecht verteilt wie der Verstand. Denn jedermann ist überzeugt, dass er genug davon habe.
(René Descartes)
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Mo 11.04.05 19:01 
Wie oft hat man dir schon gesagt, du sollst den Source richtig formatieren? :roll:

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)