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: Ondra Cada <email@hidden>
- Date: Thu, 22 Apr 2004 21:21:09 +0200
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...)
---
Ondra Hada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.