Re: Loading/Unloading a Cocoa-using framework from a CFM application
Re: Loading/Unloading a Cocoa-using framework from a CFM application
- Subject: Re: Loading/Unloading a Cocoa-using framework from a CFM application
- From: John Randolph <email@hidden>
- Date: Thu, 22 Apr 2004 18:13:45 -0700
On Apr 22, 2004, at 12:21 PM, Ondra Cada wrote:
David,
On 22.4.2004, at 21:01, David Elliott wrote:
... when ... the CFM code unloads the bundle I get the following
message:
objc: cannot unmap an image containing ObjC data
I searched for that and actually found some code from Darwin online
(objc-runtime.m) and a cursory glance seems to indicate that some
things are being initialized when the library is loaded but that they
aren't cleaned up when it's unloaded. Is there some code I could add
to clean things up so the framework can unload cleanly?
Far as I can say, ObjC code bundles cannot be ever unloaded, just since
the changes in the runtime class structure (made e.g., when a new
category is added) are irreversible. Sorry.
(Well, this applied long ago, perhaps the current compiler and runtime
made it possible, after all. But I would not bet high on that...)
That is still the case. If you'd like to be able to unload bundles,
please file a feature request at bugreporter.apple.com.
-jcr
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.