Abnormal program termination
-
Hi...
Ich habe eine kleine simple Klasse geschrieben, die Winsock kapselt. Beim Auftreten eines Fehlers innerhalb der Memberfunktionen throwe ich den Errorcode (Integerwert), den ich mithilfe von WSAGetLastError() erhalte. Wenn ich nun ein Objekt meiner Klasse erstelle, Funktionen daran ausführe (Connecten, Senden, Receiven, ...) und es wird eine solche Exception geworfen, die ich jedoch nicht catche, dann steigt das Programm mit "Abnormal program termination" aus. Catche ich diese Exception passiert nichts und es läuft alles glatt.
Gibts da Abhilfe?
Danke!
MfG
simon`phoenix
-
Und was passt dir daran net ?? Wenn du die exception nicht behandelst wird dein Prog geschlossen, basta, war schon immer so und sich so bald auch net ändern

Ich zitiere mal aus der MSDN zum Thema throw:
THROW interrupts program execution, passing control to the associated CATCH block in your program. If you have not provided the CATCH block, then control is passed to a Microsoft Foundation Class Library module that prints an error message and exits.
-
ok
