Autor Beitrag
Yacoon
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 72



BeitragVerfasst: Do 20.02.03 12:51 
Wie funktionert das Error Handling bei den dbExpress Komponenten?
Wenn ich zum Beispiel mein Datenbankserver offline habe und versuche dann zu connecten, bekomme ich immer eine Exception.
Wie kann ich diese Exceptions aber abfangen? Also ich möchte halt nicht, das wenn der DB Server nicht online ist die ganze Software abschmiert.

DAnke für eure Hilfe.

Greetz
Ice
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 114



BeitragVerfasst: Do 20.02.03 13:38 
ich habe mich noch nicht mit den dbExpress komponenten beschäftigt aber wie wäre es mit einer try except Funktion? Schon probiert?

mfg
Ice
Yacoon Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 72



BeitragVerfasst: Do 20.02.03 13:43 
ja das habe ich schon versucht, aber damit lassen sich die Exceptions nicht abfangen.
Ice
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 114



BeitragVerfasst: Do 20.02.03 13:48 
Hast du das Prog dann über Compiler laufen oder direkt die .EXE datei?
Yacoon Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 72



BeitragVerfasst: Fr 21.02.03 08:04 
Ist egal wie ich es laufen lasse. Tritt ein Fehler auf, z. B. DB Server nicht vorhanden, bricht das Programm mit einer Exception zusammen.
Aber irgndwie muss man das doch auch abfangen können.