Re: How to catch and log EXC_BAD_ACCESS?
Re: How to catch and log EXC_BAD_ACCESS?
- Subject: Re: How to catch and log EXC_BAD_ACCESS?
- From: "email@hidden" <email@hidden>
- Date: Mon, 26 Jan 2009 12:16:30 +0000
On 26 Jan 2009, at 11:33, Oleg Krupnov wrote:
For the beta-testing purposes, I'd like my app to handle the situation
when the EXC_BAD_ACCESS exception occurs, and treat it gracefully -
i.e. send a crash report and perhaps terminate.
Currently, the app just hangs and needs the user to send Force Quit to
terminate the app.
I tried to wrap the problematic code with @try/@catch, but
EXC_BAD_ACCESS seems to be a special kind of exception that is not
trapped this way.
EXC_BAD_ACCESS is not an application exception it is a Unix signal.
Signals are a BIG topic.
You can handle them in Cocoa. See this recent post.
http://www.cocoabuilder.com/archive/message/cocoa/2008/12/17/225634
Whether this is a wise course of action might be another matter.
Any advice is welcome!
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Jonathan Mitchell
Central Conscious Unit
http://www.mugginsoft.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden