Desperately looking for a work-around to load and unload D shared libraries from C on OSX

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Thu Sep 17 12:20:34 PDT 2015


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

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list