Hello,

I have a problem on some platforms (MS Windows) with OpenSG
initialization. The problem is in the dynamic loading of libraries on
start up. It happens that the API LoadLibrary is called
(OSGSharedObjectHandler.cpp) with a NULL pointer argument. This
sometimes crashes. After guarding the LoadLibrary code the application
runs fine. Inspecting the relevant 1.8 code reveals that the libName ==
NULL case is taken into account. What is the reason that the 2.0 code
does not contain the relevant code:

if(libName == NULL)
{
    Char8 szModuleName[1024];

    GetModuleFileName(NULL, szModuleName, 1024);

    _pHandle = LoadLibrary(szModuleName);
}


Anyway, at least a guard is necessary in OSGSharedObjectHandler.cpp in
order to robusten the code on the MS platform.

Best,
Johannes



____________
Virus checked by G DATA AntiVirusKit
Version: AVF 21.55 from 18.05.2010
Virus news: www.antiviruslab.com

------------------------------------------------------------------------------

_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to