In any case, to catch all uncaught exceptions in an MFC VC ++ 2008 application? There is something like this Java code:
Thread.currentThread().setUncaughtExceptionHandler( new Thread.UncaughtExceptionHandler() { public void uncaughtException(Thread t, Throwable e) { System.out.println("Oops! We have a exception in Thread '" + t.getName() + "': " + e.toString()); } });
The handler should preferably catch all types of exceptions.
source share