Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi Indy-Exceptions (https://www.delphipraxis.net/79413-indy-exceptions.html)

3_of_8 21. Okt 2006 23:54


Indy-Exceptions
 
Morgen.

Indy wirft ja ständig so Pseudo-Exceptions wie "Connection closed gracefully." oder "Disconnected."

Da Indy in einem eigenen Thread läuft, kann ich diese Exceptions auch nicht mit try-except abfangen. Wie verhindere ich trotzdem, dass sie "nach oben" durchkommen?

Dax 22. Okt 2006 00:00

Re: Indy-Exceptions
 
Im Debugger? Bei den Debuggeroptionen als "ignored" eintragen.

3_of_8 22. Okt 2006 00:06

Re: Indy-Exceptions
 
Ich dachte dann wird die Exception nur vom Debugger ignoriert, aber der Benutzer sieht sie trotzdem... Ich werds mal ausprobieren unt TIdException als ignored eintragen... Danke...

(Schon ne Sauerei, Exceptions zur Steuerung des Programmflusses zu missbrauchen... Vergewaltigung von Sprachfeatures nenne ich das... Dass sowas nicht bestraft wird... :wall: )


Alle Zeitangaben in WEZ +1. Es ist jetzt 00:45 Uhr.

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