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:
Diese dumme Exception kommt immernoch.
try
str := form1.IdHTTP1.Get('http://www.existirtnixht.eu/index.php'); except on E: EIdHTTPProtocolException do begin CreateMessageDialog(e.Message, mtWarning, [mbOk]); end; end; 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: |
Re: Indy Exception Handling funktionirt nicht
Nur dass ich das richtig verstehe, die Exception kommt auch außerhalb der IDE?
|
Re: Indy Exception Handling funktionirt nicht
Kopiere doch bitte deine Fehlermeldung.
|
Re: Indy Exception Handling funktionirt nicht
Hallo,
Zitat:
Zitat:
Heiko |
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 |
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