• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to catch and log EXC_BAD_ACCESS?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to catch and log EXC_BAD_ACCESS?
      • From: Kyle Sluder <email@hidden>
References: 
 >How to catch and log EXC_BAD_ACCESS? (From: Oleg Krupnov <email@hidden>)

  • Prev by Date: How to catch and log EXC_BAD_ACCESS?
  • Next by Date: RE: Creating a managed object without adding it to the context?
  • Previous by thread: How to catch and log EXC_BAD_ACCESS?
  • Next by thread: Re: How to catch and log EXC_BAD_ACCESS?
  • Index(es):
    • Date
    • Thread