Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Crash in CFBundleCopyLocalizedString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crash in CFBundleCopyLocalizedString



On 5/6/06 16:45 Frederick Cheung wrote:
On 6/5/06, John Brownie <email@hidden> wrote:
A couple of users have experienced crashes in
CFBundleCopyLocalizedString. It's called via the macro form
CFCopyLocalizedString(CFSTR("string"), CFSTR("comment")). The crash log has:
2 things couild be happening that I can think of:
1) You are releasing a localized string incorrectly somewhere else
2) If you have a bundle producing CFSTRs that are reference after the
bundle has been unloaded then you will run into problems. According to
http://developer.apple.com/releasenotes/CoreFoundation/CoreFoundation.html
(in the section warning about unloading bundles) this could happen
even if you have retained things properly. Compiling the bundle with
-fno-constant-cfstrings stops this happening

Found the problem - I was releasing a localized string twice. Thanks for the pointers


John
--
John Brownie, email@hidden or email@hidden
Summer Institute of Linguistics      | Mussau-Emira language, Mussau Is.
Ukarumpa, Eastern Highlands Province | New Ireland Province
Papua New Guinea                     | Papua New Guinea

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Crash in CFBundleCopyLocalizedString (From: John Brownie <email@hidden>)
 >Re: Crash in CFBundleCopyLocalizedString (From: "Frederick Cheung" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.