Autor Beitrag
Blamaster
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 164



BeitragVerfasst: Mi 24.03.10 12:32 
Hi,

ich möchte gerne Fehler beim Idhttp.Get erkennen.

Ich komme dort leider momentan nicht mehr weiter ich versuche den fehler durch ein try except abzufangen.
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
try
  Idhttp.Get();
except
  ShowMessage('Fehler');
end;

Die ShowMessage 'Fehler' wird abberldings nie ausgegeben.

Vorallem würde mich interessieren wie ich feststellen kann das die Internetverbindung während des idhttp.get abgebrochen ist, denn momentan bleibt dann nur der Downloadstehen und das wars. Keine Fehlermeldung keine wiederaufnahme des Downloads wenn die Verbindung wieder steht usw.

Mfg Yannic

Moderiert von user profile iconNarses: Delphi-Tags hinzugefügt
colaka
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 200
Erhaltene Danke: 4

Win XP, W7
Delphi 2005 Prof.
BeitragVerfasst: Do 01.04.10 19:38 
Hallo,

schade, daß hier keine Antwort kommt, denn das würde mich auch interessieren. Ich habe das gleiche Problem.

Gruß Ebi
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Do 01.04.10 21:24 
try..except ist schon richtig. In Delphi wird die Exception jedoch trotzdem angezeigt. Starte das Programm mal ohne Delphi und versuchs erneut.

_________________
PROGRAMMER: A device for converting coffee into software.
sfan
Hält's aus hier
Beiträge: 2



BeitragVerfasst: Fr 02.04.10 06:10 
Hi,

die indy komponente wirft keine Delphi exceptions aus sondern selbst definierte "fehlerfenster".

guckst du:
www.delphipraxis.net/post114239.html