Add a dummy statement behind the new and set breaks at new and in the catch block. Debug. This way, you will localize the problem. If it is the quit() (GP fault or the app tries to continue normally) then you'd better rethrow from the CMainWindow ctor and put try - catch in your main(). You should end in the catch block here. You can exit() simply because all objects created in the try block of the main() are already destructed.
Bookmarks