• 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: Can't trap uncaught exceptions on Snow Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't trap uncaught exceptions on Snow Leopard


  • Subject: Re: Can't trap uncaught exceptions on Snow Leopard
  • From: Oleg Krupnov <email@hidden>
  • Date: Sat, 19 Dec 2009 12:56:22 +0200

Yes, I tried it but it does not seem to have any effect.

I checked the [[NSExceptionHandler defaultExceptionHandler]
exceptionHandlingMask], and it's 0. I tried to set it to various
combinations, but nothing changes in the behavior of the app.

I also tried NSSetUncaughtExceptionHandler, but it does not work either.

Any ideas? Thanks!

On Fri, Dec 18, 2009 at 1:48 AM, Ken Thomases <email@hidden> wrote:
> On Dec 17, 2009, at 8:41 AM, Oleg Krupnov wrote:
>
>> On Leopard, I used to override [NSApp reportException:] method to
>> track all uncaught exceptions that occur in my app.
>>
>> However, I have just discovered that on Snow Leopard, this method
>> never gets called. Instead, the application handles the exception
>> somewhere inside and I only get this message in the console:
>>
>> HIToolbox: ignoring exception 'Test crash' that raised inside Carbon
>> event dispatch
>>
>> How to work around this and receive the uncaught exceptions somehow?
>
> Have you looked at the NSExceptionHandler class and the accompanying guide?
>
> Cheers,
> Ken
>
>
_______________________________________________

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: Can't trap uncaught exceptions on Snow Leopard
      • From: Ken Thomases <email@hidden>
References: 
 >Can't trap uncaught exceptions on Snow Leopard (From: Oleg Krupnov <email@hidden>)
 >Re: Can't trap uncaught exceptions on Snow Leopard (From: Ken Thomases <email@hidden>)

  • Prev by Date: Slider bar have two sections
  • Next by Date: Re: Can't trap uncaught exceptions on Snow Leopard
  • Previous by thread: Re: Can't trap uncaught exceptions on Snow Leopard
  • Next by thread: Re: Can't trap uncaught exceptions on Snow Leopard
  • Index(es):
    • Date
    • Thread