Autor Beitrag
andisun
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 61

Win 98, Win Xp
D5 Stan, D7 Ent
BeitragVerfasst: Mi 26.06.02 19:17 
Hi,

Wie kann ich alle Exeptions meines Programms an eine Prozedure senden, und prüfen, dann festlegen welche den Benutzer ereichen sollen und welche durch andere Sachen ersetzt werden sollen, oder gar ganz verschluckt werden sollen?
Arakis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 344



BeitragVerfasst: Mi 26.06.02 19:25 
Zum totalen Verschlucken der Exceptions gehst im Menü auf "Tools / Debugger Options / Langauage Exception", jedenfalls in der englischen Version. Dort kannst du Exceptions gernerell abschalten, oder bestimmte ignorieren, indem du dessen Namen einträgst.

Bis dann
user defined image

_________________
Mit dem Computer löst man Probleme, die man ohne ihn nicht hätte.
Entwickler von SpaceTrek: The New Empire - Siehe Hompage!
andisun Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 61

Win 98, Win Xp
D5 Stan, D7 Ent
BeitragVerfasst: Mi 26.06.02 19:33 
Werden die Exeptions so auch verhindert, wenn man das Program ohne Debugger laufen lässt?
Und außerdem finde ich ein ersetzen orgineller, damit der Benutzer weiss, was zu tun ist....
Auch ist ein Beenden des Programms mit Fehler-Anzeige möglich...
Die Lösung für einzelne Prozeduren ist ja "try ...", aber wie schliesse ich das ganze Prgramm ein?
Arakis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 344



BeitragVerfasst: Mi 26.06.02 19:37 
Ich glaub schon. Jedenfalls hatte ich mal ein paar nervige Fehlermeldungen bei den Indy-Komonenten, da hab ich einfach die Indy-Exception im Debugger deaktiviert.
Kritische Situatinen kannst du doch mit try, except/finally, end; abfangen.

Bis dann
user defined image

_________________
Mit dem Computer löst man Probleme, die man ohne ihn nicht hätte.
Entwickler von SpaceTrek: The New Empire - Siehe Hompage!
andisun Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 61

Win 98, Win Xp
D5 Stan, D7 Ent
BeitragVerfasst: Mi 26.06.02 20:25 
gut,

ja kritishce Situationen, kann ich abfangen, aber ich möchte das nicth nachrträglich in alle meine Proceduren eintragen, um dann eine Globale-Fehler-Routine zurealisieren, nach Fehler-Grad, bei schwerwiegendem Fehler->Beenden ansonsten nur Fehler ausgeben...
cbs
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 207
Erhaltene Danke: 1



BeitragVerfasst: Mi 26.06.02 20:51 
andisun Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 61

Win 98, Win Xp
D5 Stan, D7 Ent
BeitragVerfasst: Mi 26.06.02 22:44 
danke, ist echt nützlich, cih wuste doch das das irgendwie geht...

jetzt ncoh ne frage, gibt es hier ein handled?
andisun Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 61

Win 98, Win Xp
D5 Stan, D7 Ent
BeitragVerfasst: Do 27.06.02 06:48 
ok, hab s gefunden, showexeption...
Also fehler selber behandeln, die die man ncioht behandelt an showexeption...