• 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: Crashes inside CFStringDeallocate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crashes inside CFStringDeallocate


  • Subject: Re: Crashes inside CFStringDeallocate
  • From: Alex Zavatone <email@hidden>
  • Date: Mon, 11 Jun 2018 17:15:10 -0500

One idea is to force an additional release.  If the error is the same, then
this is what is causing it.

> On Jun 11, 2018, at 1:31 AM, Alastair Houghton <email@hidden>
> wrote:
>
> On 10 Jun 2018, at 19:14, Dave <email@hidden> wrote:
>>
>> Override the dealloc method and log when its called - its probably being
>> over-released!
>
> That isn’t quite as simple as it sounds, because this is NSString we’re
> talking about, which is a class cluster.  Most actual NSString instances are
> really NSCFString, though there’s nothing stopping other things from cropping
> up.  To make this work, you’d have to change the class of the string object
> for your own subclass (quite possibly using object_setClass(), because
> there’s a good chance the string object either didn’t come from your code).
>
> It’s probably better to use the built-in debugging features (zombies and the
> various memory debugging tools in Instruments, not to mention the debugging
> features in malloc).
>
> Kind regards,
>
> Alastair.
>
> --
> http://alastairs-place.net
>
> _______________________________________________
>
> 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: 
 >Re: Crashes inside CFStringDeallocate (From: Jens Alfke <email@hidden>)
 >Re: Crashes inside CFStringDeallocate (From: Dave <email@hidden>)
 >Re: Crashes inside CFStringDeallocate (From: Alastair Houghton <email@hidden>)

  • Prev by Date: Re: Crashes inside CFStringDeallocate
  • Next by Date: purpose of asking to access contacts
  • Previous by thread: Re: Crashes inside CFStringDeallocate
  • Next by thread: UNIX error exception: 17
  • Index(es):
    • Date
    • Thread