• 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: 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.


  • Follow-Ups:
    • Re: Loading/Unloading a Cocoa-using framework from a CFM application
      • From: John Randolph <email@hidden>
References: 
 >Loading/Unloading a Cocoa-using framework from a CFM application (From: David Elliott <email@hidden>)

  • Prev by Date: Re: Newbie: Cannot use object as a parameter to a method
  • Next by Date: Re: Newbie: Cannot use object as a parameter to a method
  • Previous by thread: 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