• 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: App Launches in Finder, Hangs While Launching in Debugger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: App Launches in Finder, Hangs While Launching in Debugger


  • Subject: Re: App Launches in Finder, Hangs While Launching in Debugger
  • From: Joar Wingfors <email@hidden>
  • Date: Sun, 13 Dec 2009 23:06:34 -0800

On 13 dec 2009, at 22.26, Joe Programmer wrote:

> Two occurrences of the following massage are appearing in the console:
> -[NSCFArray _getCString:maxLength:encoding:]: unrecognized selector sent to instance 0x4016e0


That's almost certainly an indication of a memory management error in your application. If you're not using Garbage Collection in your app, I'd suggest that you troubleshoot this using zombies. Search for "NSZombieEnabled" to find help on how you employ their assistance.


> What is also a bit disturbing about this, is that the debugger catches this exception, but Cocoa/OS does not?!


If you were to check the console (/Applications/Utilities/Console.app) when you launch your app from the Finder, you'd probably find the same error logged there. Some exceptions get masked when you're running outside of the debugger, and might not lead to a crash of your application. That doesn't mean that you could consider this less severe though, uncaught exceptions should be treated as crashes regardless.

j o a r


_______________________________________________

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: App Launches in Finder, Hangs While Launching in Debugger
      • From: Joar Wingfors <email@hidden>
    • Re: App Launches in Finder, Hangs While Launching in Debugger
      • From: Joe The Programmer <email@hidden>
References: 
 >App Launches in Finder, Hangs While Launching in Debugger (From: Joe Programmer <email@hidden>)

  • Prev by Date: App Launches in Finder, Hangs While Launching in Debugger
  • Next by Date: Re: App Launches in Finder, Hangs While Launching in Debugger
  • Previous by thread: App Launches in Finder, Hangs While Launching in Debugger
  • Next by thread: Re: App Launches in Finder, Hangs While Launching in Debugger
  • Index(es):
    • Date
    • Thread