Moin!
Also, ich habe das hier getestet:
Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15:
| procedure TForm1.Button1Click(Sender: TObject); const url = 'http://www.google.de1'; var Indy: TIdHTTP; begin Indy := TIdHTTP.Create(nil); Indy.AllowCookies := False; try Memo1.Lines.Text := Indy.Get(Url); except ShowMessage('Fehler'); end; Indy.Free; end; |
Der "Fehler" wird korrekt gefangen; allerdings - wie ich schon angedeutet hatte - nicht in der IDE, da wird natürlich die Ausführung angehalten.
Wenn ich das Programm aber ausserhalb der IDE starte, dann läuft´s korrekt. Du kannst natürlich auch das Stoppen bei Exceptions in der IDE abschalten.
cu
Narses
There are 10 types of people - those who understand binary and those who don´t.