Desperately looking for a work-around to load and unload D shared libraries from C on OSX
bitwise via Digitalmars-d
digitalmars-d at puremagic.com
Thu Sep 17 12:42:05 PDT 2015
On Thursday, 17 September 2015 at 19:20:34 UTC, Jacob Carlborg
wrote:
> On 2015-09-17 18:20, bitwise wrote:
>
>> dyld_register_image_state_change_handler does not provide a
>> way to
>> unregister the callback either, so I don't see how this helps.
>
> The dynamic library holding the callback is pinned. See the
> implementation of registerImageStateSingleChangeHandler, the
> first few lines.
>
> [1]
> http://www.opensource.apple.com/source/dyld/dyld-353.2.3/src/dyld.cpp
Ok, but this kinda defeats the purpose, as the op wants to unload
the library ;)
Bit
More information about the Digitalmars-d
mailing list