Autor Beitrag
Tor
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23


D5 Ent
BeitragVerfasst: Mo 10.01.05 13:35 
Hi ich hab da ein Problem mit IDFTP und zwar wen der Host nicht verfügbar ist bekomme ich im Programm die
Meldung Socket Error # 10061 Connection Refused ich hab aber keine Ahnung wie ich das abfangen kann.
Kann mir da jemand helfen?

_________________
Ich Will doch nur die Welt verbessern! :) ...
Aber Gott gibt mir die Scripte nicht. :(
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mo 10.01.05 14:18 
mittels
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
try
...
except
...
end;

_________________
In the beginning was the word.
And the word was content-type: text/plain.
chrisw
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 439
Erhaltene Danke: 3

W2K
D7
BeitragVerfasst: Mo 10.01.05 14:21 
probiers mal mit

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
try
  IdFTP1.connect;
except
  on  EIdSocketError do
  Showmessage('Server not available');  //Nur als Bespiel
end;



Viel spass

_________________
Man sollte keine Dummheit zweimal begehen, die Auswahl ist schließlich groß genug.
Tor Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23


D5 Ent
BeitragVerfasst: Mo 10.01.05 14:33 
Das mit dem Try hab ich mir schon gedacht das problem dabei istnur das EIdSocketError von delphi als Unbekant bezeichnet wird ansonsten scheins zu gehen

_________________
Ich Will doch nur die Welt verbessern! :) ...
Aber Gott gibt mir die Scripte nicht. :(
chrisw
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 439
Erhaltene Danke: 3

W2K
D7
BeitragVerfasst: Mo 10.01.05 14:40 
in die Uses Klausel einfach die Exceptions von Indy aufnehmen, schon gehts.

Macht man das nicht, werden auch andere exceptions mit diesem ErrorHandling benutzt.



uses ........., idException;



Chris

_________________
Man sollte keine Dummheit zweimal begehen, die Auswahl ist schließlich groß genug.
Tor Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23


D5 Ent
BeitragVerfasst: Mo 10.01.05 14:46 
THX an alle ihr habt mir echt geholfen

_________________
Ich Will doch nur die Welt verbessern! :) ...
Aber Gott gibt mir die Scripte nicht. :(