On May 25, 2018, at 5:44 AM, Vojtěch Meluzín <meldaproduct...@gmail.com> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to