Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
CFBundleCloseBundleResourceMap on 9
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CFBundleCloseBundleResourceMap on 9



CFBundleCloseBundleResourceMap doesn't work for me on 9.

The resource chain before CFBundleOpenBundleResourceMap is:

-> something (doesn't matter)
...

The resource chain after CFBundleOpenBundleResourceMap is:

->+Localized.rsrc
Library
something
...

"+" means that Localized.rsrc overrides resources below it.

The result of the call points to "Library".

So far so good.

The resource chain after CFBundleCloseBundleResourceMap is:

->+Localized.rsrc
something
...

Meaning that "Library" is closed, but "Localized.rsrc" is still
there. Strange.

After that on program termination application hangs. Macsbug
shows that there is buzy loop inside system that tries to close
the top resource file (Localized.rsrc) but that fails, so
"Localize.rsrc" remains the top file, so this process continues
forever.

Obviously I do not expect this to be fixed on 9. Just wonder
if anyone did encounter this problem and knows workarounds.
My current workaround is to not use
CFBundleOpenBundleResourceMap/CFBundleCloseBundleResourceMap
at all but use CFBundleOpenBundleResourceFiles instead.

If anyone curious, I use these calls to open resource files
of my shared library.

Mike
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.



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.