• 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
Module unlinking
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Module unlinking


  • Subject: Module unlinking
  • From: Stephane Thiell <email@hidden>
  • Date: Sat, 11 Jan 2003 17:19:52 +0100

Hello,

I'm new to Cocoa development. I wrote a daemon program which is highly modular, and add modules at runtime or reload them after change. It's written in C++ and is linked with CoreFoundation framework. I wrote recently a new module loader (not in objC) with NSModule to link and unlink C or C++ modules. It works like a charm, until I wanted to try cocoa/objC support in modules (strongly requested by some Cocoa developers friends):

2003-01-11 16:55:51.076 Craw[3508] _CrawModuleDestroy
objc: cannot unmap an image containing ObjC data
(and then crash)

from 'man NSModule' :

NSUnLinkModule unlinks the specified module handle from
the program. Currently the implementation is limited to
only allow modules linked with NSLinkModule to be
unlinked. The parameter, options, can have a set of
options or'ed together.

Our modules are always linked with NSLinkModule. Additionnaly, I tried NSUNLINKMODULE_OPTION_NONE and NSUNLINKMODULE_OPTION_KEEP_MEMORY_MAPPED options without success... Nothing in the manual about objC limitation.

I need help on how to do it, or unfortunately, I'll be on the way to forget Cocoa support. I probably did something wrong, I can't think a so dynamic language has such a limitation. It would be so great to have it in the plugins. :-(

Thanks in advance,
--
Stephane Thiell
_______________________________________________
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: Module unlinking
      • From: Jeff Disher <email@hidden>
  • Prev by Date: How to know when the selection changed in an NSOutlineView when scrolling with the arrow keys?
  • Next by Date: Re: import iphoto-library
  • Previous by thread: Re: How to know when the selection changed in an NSOutlineView when scrolling with the arrow keys?
  • Next by thread: Re: Module unlinking
  • Index(es):
    • Date
    • Thread