Module unlinking
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.