Hallo,
ich erstelle gerade eine Windowsanwendung die aus ein Hauptformular und ein paar „Unterformularen“ (Usercontrol die ich in ein Panel lade) besteht.
Die Anwendung liest unter anderem einige Dateien ein. Wenn diese nicht vorhanden sind löse ich eine Exception aus. Wenn ich das ganze im Visual Studio ausführe und teste, funktioniert alles bestens. Wenn ich jedoch direkt die exe ausführe wird die Exception nicht aufgefangen. Stattdessen erscheint eine Meldung der Laufzeitumgebung („Nicht behandelte Exception…“)
Wie gesagt das Problem tritt nur auf wenn ich die exe direkt ausführe…beim start in Visual Studio wird diese Exception aufgefangen…
Wie kann das sein?
ich erstelle gerade eine Windowsanwendung die aus ein Hauptformular und ein paar „Unterformularen“ (Usercontrol die ich in ein Panel lade) besteht.
Die Anwendung liest unter anderem einige Dateien ein. Wenn diese nicht vorhanden sind löse ich eine Exception aus. Wenn ich das ganze im Visual Studio ausführe und teste, funktioniert alles bestens. Wenn ich jedoch direkt die exe ausführe wird die Exception nicht aufgefangen. Stattdessen erscheint eine Meldung der Laufzeitumgebung („Nicht behandelte Exception…“)
Wie gesagt das Problem tritt nur auf wenn ich die exe direkt ausführe…beim start in Visual Studio wird diese Exception aufgefangen…
Wie kann das sein?
Comment