gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Allowing Applications to continue after exception...


From: Gregory Casamento
Subject: Re: Allowing Applications to continue after exception...
Date: Wed, 4 Feb 2009 23:52:59 -0500

The attached test program does not crash on Mac OS X when the button is pressed, but does crash on GNUstep.  The button calls the "action:" method in Controller which immediately throws an exception.

I believe this confirms that GNUstep's behavior is inconsistent with Cocoa.   I can test on OpenStep, but I suspect that the behavior is the same there as it is on Cocoa.

Thanks, GC

On Wed, Feb 4, 2009 at 5:52 PM, Adam Fedor <address@hidden> wrote:

On Feb 4, 2009, at 1:23 PM, Gregory Casamento wrote:

I definitely think we should implement something similar.   It would help a great deal with some porting efforts.

On Wed, Feb 4, 2009 at 3:03 PM, David Chisnall <address@hidden> 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?

The OS X behaviour appears to be for each runloop iteration to be wrapped in a @try{} block with the exception being NSLog'd if it occurs during the runloop.  This is quite convenient for debugging, since you can just read the log and find out where the exception happened, without having to

David

Yes, I've found it useful for debugging, particularly when you've just implemented a bunch of things.  Just logging the exception allows you to see how the app operates in general, even it the behavior is off.

_______________________________________________
Gnustep-dev mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/gnustep-dev




--
Gregory Casamento
Open Logic Corporation, Principal Consultant
## GNUstep Chief Maintainer
yahoo/skype: greg_casamento, aol: gjcasa
(240)274-9630 (Cell), (301)362-9640 (Home)

Attachment: ExceptionTest.tar.gz
Description: GNU Zip compressed data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]