Autor Beitrag
AScomp
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 162


Delphi 5, Delphi 7, Delphi 2007, Delphi 2009, Delphi XE, Delphi 10 Seattle
BeitragVerfasst: Fr 24.11.06 12:11 
Hallo,

bis Indy 9 habe ich Exceptions immer mit try..except-Blöcken abgefangen:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
try
   IdFTP.Put(BkmFileComplete, FTPFileName, false);
except
   ShowMessage('Didn''t work');
end;


Seit Indy 10 werden aber einfach Indy-Fehlermeldungsfenster angezeigt und der except-Bereich wird gar nicht mehr ausgeführt. Hat mir jemand einen Tipp, wie ich das wieder per try..except abfangen kann?

Danke!

Moderiert von user profile iconmatze: Delphi-Tags hinzugefügt

_________________
Viele Grüße,
Andy
AScomp Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 162


Delphi 5, Delphi 7, Delphi 2007, Delphi 2009, Delphi XE, Delphi 10 Seattle
BeitragVerfasst: Fr 24.11.06 14:34 
Titel: Geklärt.
Hallo,

hat sich anderweitig geklärt - ich hatte noch ein

IdFTP.Disconnect

im except-Bereich, das funktionierte mit Vorversionen immer. Jetzt kommt eine Indy Exception (weil die Verbindung ja bereits beendet ist - ein zusätzliches Disconnect ist nicht nötig).

_________________
Viele Grüße,
Andy