Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi Indy Exception Handling funktionirt nicht (https://www.delphipraxis.net/136108-indy-exception-handling-funktionirt-nicht.html)

Deltachaos 23. Jun 2009 17:48


Indy Exception Handling funktionirt nicht
 
Ich versuche jetzt schon seit einer stunde bei Indy eine Exception abzufangen und es funktionirt aber nicht.
Ich fang gleich an zu kotzen. :kotz:

Delphi-Quellcode:
try
  str := form1.IdHTTP1.Get('http://www.existirtnixht.eu/index.php');
except
  on E: EIdHTTPProtocolException do begin
    CreateMessageDialog(e.Message, mtWarning, [mbOk]);
  end;
end;
Diese dumme Exception kommt immernoch.
Was zum geier mach ich falsch?
Ich hab wschon gegoogelt nach:
Indy, Indy Exception Handling, indy exception verarbeiten

Hab mir auch das durchgelesen:
http://conferences.codegear.com/article/32159

binn aber noch nicht einen schritt weiter

Helft mir bitte. :wall: :wall:

DeddyH 23. Jun 2009 17:50

Re: Indy Exception Handling funktionirt nicht
 
Nur dass ich das richtig verstehe, die Exception kommt auch außerhalb der IDE?

Jakob Ullmann 23. Jun 2009 17:51

Re: Indy Exception Handling funktionirt nicht
 
Kopiere doch bitte deine Fehlermeldung.

hoika 23. Jun 2009 17:56

Re: Indy Exception Handling funktionirt nicht
 
Hallo,

Zitat:

Ich versuche jetzt schon seit einer stunde bei Indy eine Exception abzufangen und es funktionirt aber nicht.
Zitat:

Diese dumme Exception kommt immernoch.
Was willat du denn erreichen ?


Heiko

Deltachaos 23. Jun 2009 18:01

Re: Indy Exception Handling funktionirt nicht
 
ok, mit so vielen antworten hätte ich nicht gerechnet.
1. ja sie kommt nur in der IDE.
2. hier die meldung:
---------------------------
Benachrichtigung über Debugger-Exception
---------------------------
Im Projekt Project1.exe ist eine Exception der Klasse EIdHTTPProtocolException aufgetreten. Meldung: 'HTTP/1.0 302 Found'. Prozess wurde angehalten. Mit Einzelne Anweisung oder Start fortsetzen.
---------------------------
OK Hilfe
---------------------------
3. ich möchte erreichen das das programm sich dann anders verhält. also indem eine variable auf einen wert gesetzt wird. das mach ich dann schon

DeddyH 23. Jun 2009 18:09

Re: Indy Exception Handling funktionirt nicht
 
Dass die Exception innerhalb der IDE kommt, ist doch beabsichtigt, das wird logischerweise nicht durch try-except abgefangen.


Alle Zeitangaben in WEZ +1. Es ist jetzt 09:10 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz