NSBundle unloading crash
NSBundle unloading crash
- Subject: NSBundle unloading crash
- From: Jonathan Guy <email@hidden>
- Date: Wed, 27 Jan 2010 10:01:59 +0000
Hi all
This problem has me pretty stumped. I've been trying to figure this out for about a week now with no success. I have an embedded framework which itself has two embedded bundles. The two bundles contain the same code of an open source project but just different versions. The framework is designed to dynamically load and unload these bundles as required as only one can be loaded at any one time. The bundle project contains about 6 obj-c classes which link to the dylibs of the open source project (embedded in the bundle). If I only load one bundle the app is fine. If I load a bundle and then unload it the app becomes unstable and either eventually crashes or crashes on quit. The crash almost always seems to happen on the call "fixupSelectorsInMethodList". I have read all Apples docs on code loading (which seems out of date as they state that NSBundles can't be unloaded) and from that I've set the -fno-constant-cfstrings compiler flag, turned on garbage collection support and have no classes or pointers to any objects derived from code in the bundle. In fact if I just load the bundle and unload without actually doing anything the app still crashes on quit. I've run "Build and Analyze" on all components and everything check out. I've run the app with "Objects Allocations" and can't see anything out of place. It's starting to drive me nuts.
Any help would be greatly appreciated.
Jonathan_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden