• 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: Need help debugging this
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need help debugging this


  • Subject: Re: Need help debugging this
  • From: Scott Andrew <email@hidden>
  • Date: Mon, 18 Jul 2011 12:41:39 -0700

As was pointed out below the CString doesn't support instance method string:. Crashing this in a debugger should give you call stack so you can trace who is doing the calling. You should also have a crash log that can be symbolized.

But, if this is your code run it in the debugger and have it crash. Use the call stack to see who is making this call.

Scott

On Jul 18, 2011, at 11:13 AM, Quincey Morris wrote:

> On Jul 18, 2011, at 05:48, Andre Masse wrote:
>
>> -[NSCFString string]: unrecognized selector sent to instance 0x7fff71192b70
>
> I don't think anyone's pointed you in the direction of *reading* this error message. Note that it says -[NSCFString string], not +[NSCFString string]. Someone has sent a 'string' message to a NSString instance.
>
> NSString instances don't respond to 'string' messages. NSString *classes* do. That leads me to suspect that you've written some code that accidentally sends the class message to an instance, and that your problem is nothing to do with memory management.
>
> The important thing to find out is who is sending the message, not what it's being sent to.
>
>> 1- Adding a breakpoint on objc_exception_throw: brings the debugger on NSApplicationMain...
>
> Is this in Xcode 4? Make sure the "level of detail" slider at the bottom of the debugger view in the navigator pane is all the way to the right. If it's in its default middle position, it often collapses the call stack, misleading you to think the exception was in NSApplicationMain ().
>
>
> _______________________________________________
>
> 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

_______________________________________________

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

References: 
 >Need help debugging this (From: Andre Masse <email@hidden>)
 >Re: Need help debugging this (From: vincent habchi <email@hidden>)
 >Re: Need help debugging this (From: Andre Masse <email@hidden>)
 >Re: Need help debugging this (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Need help debugging this
  • Next by Date: UIButton on top of other objects
  • Previous by thread: Re: Need help debugging this
  • Next by thread: Re: Need help debugging this
  • Index(es):
    • Date
    • Thread