From de6f03fb1bf2ad59d114e257d8c51e25b1002fa7 Mon Sep 17 00:00:00 2001 From: fedor Date: Mon, 12 Feb 2001 04:48:22 +0000 Subject: [PATCH] Don't set uncaught except handler until after init git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9125 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 6 ++++++ Source/NSApplication.m | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index f806698d9..2aafe5541 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-02-11 Adam Fedor + + * Source/NSApplication.m ([NSApplication -init]): Don't set our + uncaught exception handler until after the back-end is initialized + (at least). + 2001-02-09 Richard Frith-Macdonald * Source/NSApplication.m: NSAppIconView modified to support the diff --git a/Source/NSApplication.m b/Source/NSApplication.m index 783d0087a..9df883735 100644 --- a/Source/NSApplication.m +++ b/Source/NSApplication.m @@ -365,9 +365,6 @@ static NSCell* tileCell = nil; /* Save the base library exception handler */ defaultUncaughtExceptionHandler = NSGetUncaughtExceptionHandler (); - /* Set a new exception handler for the gui library */ - NSSetUncaughtExceptionHandler (_NSAppKitUncaughtExceptionHandler); - /* Cache the NSAutoreleasePool class */ arpClass = [NSAutoreleasePool class]; nc = [NSNotificationCenter defaultCenter]; @@ -437,6 +434,9 @@ static NSCell* tileCell = nil; //_main_menu = nil; _windows_need_update = YES; + /* Set a new exception handler for the gui library */ + NSSetUncaughtExceptionHandler (_NSAppKitUncaughtExceptionHandler); + _listener = [GSServicesManager newWithApplication: self]; /* NSEvent doesn't use -init so we use +alloc instead of +new */