This is what I was thinking... the reason I'm thinking about this is because
I am working on porting a few apps and exception which show up in the log on
Mac OS X cause GNUstep to die.

GC

On Wed, Feb 4, 2009 at 2:52 PM, Matt Rice <ratm...@gmail.com> wrote:

> On Wed, Feb 4, 2009 at 11:14 AM, Richard Frith-Macdonald
> <rich...@tiptree.demon.co.uk> wrote:
> >
> > On 4 Feb 2009, at 18:53, Gregory Casamento wrote:
> >
> >> In some cases on Mac OS X I have observed that exceptions which are not
> >> fatal on Mac sometimes ARE fatal on GNUstep.   I believe we should
> change
> >> the logic which deals with exceptions to add a "continue" button and
> only
> >> show the panel when the application is running in debug mode.   This
> would
> >> allow the application to continue when recovery is possible.
> >>
> >> Does anyone have any thoughts on this?
> >
> > I think the panel is shown when there is an UNCAUGHT exception.
> > If the exception has not been caught, there is nowhere to return to and
> no
> > way to continue ... so adding a continue button and returning from the
> > uncaught exception handler would not allow the application to continue.
> >
> > If you want an exception to not be fatal, you have to write code to
> handle
> > it and continue.
> >
> > Sometimes you might think you can continue running, but know that the app
> > probably won't be doing what the user expects.  In this situation it
> makes
> > sense to display an alert panel explaining the nature of the problem, and
> > allow the user to choose between continuing and cleanly terminating.
>  This
> > however is a very different case from the panel shown when the uncaught
> > exception handler is called.
> >
> >
>
> there might be an handler in the NSApplication -run method which
> allows the runloop to continue iterating...
> i seem to recall an old version of openstep doing something to this
> effect with uncaught exceptions, didn't show a panel, or NSLog
> anything, or abort unless of course i was using NSAssert, and it was
> doing something with the c preprocessor to get rid of my NSAsserts,
> which seems possible :)
>



-- 
Gregory Casamento
Open Logic Corporation, Principal Consultant
## GNUstep Chief Maintainer
yahoo/skype: greg_casamento, aol: gjcasa
(240)274-9630 (Cell), (301)362-9640 (Home)
_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to