Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi Exceptionshandling in Konsole (https://www.delphipraxis.net/32446-exceptionshandling-konsole.html)

mytar 23. Okt 2004 12:58


Exceptionshandling in Konsole
 
Wie ist globales Exceptionshandling in der Konsole realisierbar?

Bei einer normalen GUI-Anwendung gibts dazu ja ein Ereignis (OnException).

Danke für die Antworten! :-D

Dax 23. Okt 2004 13:04

Re: Exceptionshandling in Konsole
 
Schliesse jeden Hauptblock des Programms in try-except-Blöcke ein.
Also z.B. das Hauptprogramm (begin...end.) und die Anweisungen jeder wichtigen Prozedur/Funktion.

mytar 23. Okt 2004 13:07

Re: Exceptionshandling in Konsole
 
Danke, aber ich weiß wie ich eine Exception auslöse!

Ich möchte nur eine globale Methode definieren um eine konsistente
Fehlermeldung auszugeben. :-D

Danke

Dax 23. Okt 2004 13:10

Re: Exceptionshandling in Konsole
 
Sieh mal im MSDN unter MSDN-Library durchsuchenSetUnhandledExceptionFilter nach..

mytar 24. Okt 2004 08:10

Re: Exceptionshandling in Konsole
 
Wenn das ganze ohne WinAPI nicht geht ist der Aufwand sicherlich zu groß! :-D

Also hab ich sonst keine Möglichkeit, oder?


Alle Zeitangaben in WEZ +1. Es ist jetzt 18:46 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