Re: Loading dynamic libraries with dlopen
Re: Loading dynamic libraries with dlopen
- Subject: Re: Loading dynamic libraries with dlopen
- From: "Peter O'Gorman" <email@hidden>
- Date: Sun, 08 May 2005 10:00:19 +0900
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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.
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden