From bad47e0fe0d117f50a82205cb96f16a8bf01716f Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 24 Jun 2005 15:30:11 +0000 Subject: [PATCH] From David Guthrie, "The call NSLookupAndBindSymbol was changed to NSLookupSymbolInModule. The former call would lookup the named symbol NOT in the current dynamic library, but in the entire running program while the call NSLookupSymbolInModule, takes the handle to the library the symbol should be found in. This means the current code will fail if one loads multiple bundles at runtime and attempts to load the same named symbol from each one." --- src/osgDB/DynamicLibrary.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgDB/DynamicLibrary.cpp b/src/osgDB/DynamicLibrary.cpp index f8c5aa023..7d411b0b3 100644 --- a/src/osgDB/DynamicLibrary.cpp +++ b/src/osgDB/DynamicLibrary.cpp @@ -123,7 +123,7 @@ DynamicLibrary::PROC_ADDRESS DynamicLibrary::getProcAddress(const std::string& p std::string temp("_"); NSSymbol symbol; temp += procName; // Mac OS X prepends an underscore on function names - symbol = NSLookupAndBindSymbol(temp.c_str()); + symbol = NSLookupSymbolInModule(static_cast(_handle), temp.c_str()); return NSAddressOfSymbol(symbol); #elif defined(__hpux__) void* result = NULL;