Catching Exceptions in MFC
-
Hi, Is there a way to catch Exceptions in my SDI MFC application in a very low level? What I mean: I work with an SQL database and it may be that I have an error in the SQL syntax etc. In this case a specific exceptions is thrown. I do not want to catch it somewhere in my code for View/Document but rather somewhere in the application object and then just display an error message and terminating my application the right way (including calling of all destructors). When I do not catch them, I get a "Runtime error" in the debug version. I would like to have this similar behaviour. Regards, Niki
-
Hi, Is there a way to catch Exceptions in my SDI MFC application in a very low level? What I mean: I work with an SQL database and it may be that I have an error in the SQL syntax etc. In this case a specific exceptions is thrown. I do not want to catch it somewhere in my code for View/Document but rather somewhere in the application object and then just display an error message and terminating my application the right way (including calling of all destructors). When I do not catch them, I get a "Runtime error" in the debug version. I would like to have this similar behaviour. Regards, Niki
-
Hi, Is there a way to catch Exceptions in my SDI MFC application in a very low level? What I mean: I work with an SQL database and it may be that I have an error in the SQL syntax etc. In this case a specific exceptions is thrown. I do not want to catch it somewhere in my code for View/Document but rather somewhere in the application object and then just display an error message and terminating my application the right way (including calling of all destructors). When I do not catch them, I get a "Runtime error" in the debug version. I would like to have this similar behaviour. Regards, Niki
See XCrashReport : Exception Handling and Crash Reporting - Part 4[^] if its helpful for you.
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )