Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Rules for dynamically loaded bundles, CFEqual, CFDictionaryFindBuckets1b crash w/ dangling applicationID reference
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rules for dynamically loaded bundles, CFEqual, CFDictionaryFindBuckets1b crash w/ dangling applicationID reference



I think I found the reference now that I know what to search for:

Thanks again,

David

http://developer.apple.com/documentation/CoreFoundation/Reference/CFBundleRef/Reference/reference.html

Note that it is best to compile any unloadable bundles with the flag
-fno-constant-cfstrings—see Bundles for more details

On 3/15/07, David Blake <email@hidden> wrote:
Where might I find this rule documented?
If this is the case, then all calls to the Carbon Framework would fall
under this.
I'll work with this as the rule and replace my use of CFTSR() with
dynamic memory when calling anything outside my bundle.

Thanks,

David

On 3/15/07, Eric Schlegel <email@hidden> wrote:
>
> On Mar 14, 2007, at 8:10 PM, David Blake wrote:
>
> > I agree with the analysis.  I more or less implied this when I
> > wrote this up.
> >
> > My question is more whether there is a rule that loaded bundles should
> > be following, or is there a bug in OS X where it shouldn't assume
> > application IDs will always be around and should therefore be creating
> > a copy of the string rather than doing a CFRetain.
>
> I think it's a rule that an unloadable bundle should not use constant
> CFStrings that could be passed out to code outside of the bundle.
>
> -eric
>
>

_______________________________________________
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: 
 >Rules for dynamically loaded bundles, CFEqual, CFDictionaryFindBuckets1b crash w/ dangling applicationID reference (From: "David Blake" <email@hidden>)
 >Re: Rules for dynamically loaded bundles, CFEqual, CFDictionaryFindBuckets1b crash w/ dangling applicationID reference (From: "David Blake" <email@hidden>)
 >Re: Rules for dynamically loaded bundles, CFEqual, CFDictionaryFindBuckets1b crash w/ dangling applicationID reference (From: "Demian M. Nave" <email@hidden>)
 >Re: Rules for dynamically loaded bundles, CFEqual, CFDictionaryFindBuckets1b crash w/ dangling applicationID reference (From: "David Blake" <email@hidden>)
 >Re: Rules for dynamically loaded bundles, CFEqual, CFDictionaryFindBuckets1b crash w/ dangling applicationID reference (From: Eric Schlegel <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.