Loading dynamic libraries with dlopen
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... I am involved in a cross platform project that uses API's like dlopen to dynamically loaded needed libraries. On Mac OS X, these libraries are implemented with the dynamic library style as opposed to bundle library style. I have found that when I load a dynamic library using dlopen I cannot close the library using dlclose, and a call to dlerror explicitly says "dynamic libraries cannot be closed". I know I should be able to close the libraries if they used the bundle style instead. I have found, however, that if I convert the style of the libraries from dynamic to bundle, the application will hang while loading. Right I'm not familiar enough with everything that happens when the application starts up to figure out why it doesn't work. Also, getting the program working on the Macintosh is lower priority than other projects. So, I'm would like to leave the libraries as dynamic if I can, and I'm not sure if this is the best thing to do. What are the implications of loading dynamic style libraries with dlopen? How does the fact that these libraries can't be closed affect the system? This email sent to site_archiver@lists.apple.com
participants (1)
-
Tron Thomas