Re: 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) Peter O'Gorman wrote: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Is this on 10.3 or 10.4 (the dlopen implementation changed for 10.4)? Can you attach to the hanging application and show a backtrace? It is best to dlopen bundles however if you find that dylibs work and bundles don't then just ignore the dlclose error. Peter - -- Peter O'Gorman - http://www.pogma.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (Darwin) iQCVAwUBQn1ko7iDAg3OZTLPAQI2RQQAxDBIRh6KNu8NKai4N+ABy2GwbXBR1e4Y 9ROCrbW416yp9qzHESaUxrx9UMsq4sYBTn8PwYW7opSRq7tJtkpLMeNTl3tHKMJB rrS8ENySrxqzXXhjmJA1Gh2AUmqCkB617odFi46hUzlnhyycT/swHPMvg3QknC5f Bjl9KI9DQQo= =VzPo -----END PGP SIGNATURE----- _______________________________________________ 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... Currently this application runs on 10.3. I did some research on the Internet before posting, and I ran across a web page which indicated that even on 10.4, unloading dynamic libraries is still not supported. I wanted to review that web page again, and I have been unable to find it. I haven't bothered trying to debug the hanging program yet, as I haven't had the time to look into problem. Switching all the libraries from dynamic style to bundle style is time consuming as there are a lot of libraries and it take a long time to rebuild on my system. Tron Thomas wrote: | 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Tron Thomas