• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Loading/Unloading a Cocoa-using framework from a CFM application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Loading/Unloading a Cocoa-using framework from a CFM application (From: David Elliott <email@hidden>)
 >Re: Loading/Unloading a Cocoa-using framework from a CFM application (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: how to use DES algorithm ?
  • Next by Date: Appending an ellipsis to a NSString
  • Previous by thread: Re: Loading/Unloading a Cocoa-using framework from a CFM application
  • Next by thread: Re: Loading/Unloading a Cocoa-using framework from a CFM application
  • Index(es):
    • Date
    • Thread