Exit on uncaught exception.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21452 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2005-07-12 07:07:00 +00:00
parent 4dcb44655a
commit f98ecc041a
2 changed files with 10 additions and 7 deletions

View file

@ -1,3 +1,11 @@
2005-07-12 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSApplication.m: (_NSAppKitUncaughtExceptionHandler)
As there was no other feedback to the recent email thread on this,
I've removed the option to try to 'ignore' the exception ... since
it would most likely result in a random crash (possibly with loss
of data etc) at a later point.
2005-07-09 Adrian Robert <arobert@cogsci.ucsd.edu>
* Source/NSSavePanel.m (-ok:): Set _fullFileName before invoking

View file

@ -111,7 +111,7 @@ _NSAppKitUncaughtExceptionHandler (NSException *exception)
[[NSProcessInfo processInfo] processName]],
@"%@: %@",
_(@"Abort"),
_(@"Ignore"),
nil,
#ifdef DEBUG
_(@"Debug"),
#else
@ -127,16 +127,11 @@ _NSAppKitUncaughtExceptionHandler (NSException *exception)
library exception handler */
[exception raise];
}
else if (retVal == NSAlertOther)
else
{
/* Debug button: abort so we can trace the error in gdb */
abort();
}
/* The user said to go on - more fun I guess - turn the AppKit
exception handler on again */
NSSetUncaughtExceptionHandler (_NSAppKitUncaughtExceptionHandler);
[NSApp run]; /* try entering the run loop again */
}
/* This is the bundle from where we load localization of messages. */