• 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: Ken Thomases <email@hidden>
  • Date: Fri, 25 May 2018 09:26:13 -0500

On May 25, 2018, at 5:44 AM, Vojtěch Meluzín <email@hidden> wrote:
>
> I have received a few cases like the trace below - it always happens in OSX
> 10.10 and runModalForWindow and crashes in CFStringDeallocate. Any ideas
> what that could be?

Have you run your app with the Zombies instrument?

> […] NSStrings, which are
> probably the issue here are always created from our MString like this:
>
> const unichar *utf16 = (const unichar  *)s.GetUTF16();
> return [NSString stringWithCharacters: utf16 length: s.GetLength()];

Does MString::GetLength() return the length in UTF-16 code units (as opposed
to, say, UTF-8 code units)?

Regards,
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: Crashes inside CFStringDeallocate
      • From: Vojtěch Meluzín <email@hidden>
References: 
 >Crashes inside CFStringDeallocate (From: Vojtěch Meluzín <email@hidden>)

  • Prev by Date: Crashes inside CFStringDeallocate
  • Next by Date: Re: Crashes inside CFStringDeallocate
  • Previous by thread: Crashes inside CFStringDeallocate
  • Next by thread: Re: Crashes inside CFStringDeallocate
  • Index(es):
    • Date
    • Thread