Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CFBundleGetFunctionPointerForName returns NULL



Ok, I feel pretty silly for not checking the console log.  There was an
error:
Cannot find executable for CFBundle 0x3f38fe50 <(full path
omitted)/MyApp.app/Contents/Frameworks/MyFramework.framework> (not loaded)

Why would a bundle not be able to find its executable?  Is there something
else I need to do?

I have another application (MyApp) that uses this same framework without any
issues (although it links directly to it).

If it makes any difference, I'm trying to load this framework in folder
MyApp.app/Contents/Frameworks from an InDesign CS3 plug-in.

Walter

On 11/27/07 7:42 PM, "Walter" <email@hidden> wrote:

> I'm having problems figuring out whats wrong in my application.  When I call
> CFBundleGetFunctionPointerForName it always returns NULL.  I've validated
> that everything is universal binaries.  I used the names that I retrieved
> from otool, but it still returns NULL.  All of the functions that I'm trying
> to load are declared as extern "C".  The bundle is loading correctly and I'm
> not getting any errors.
> 
> Anyone have any ideas of what to look at next?
> 
> 
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Carbon-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/carbon-dev/email@hidden
> 
> This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >CFBundleGetFunctionPointerForName returns NULL (From: Walter <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.