Hello Johannes, Johannes Brunen wrote: > 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.
ok, I've put something along the above lines in there (r2424). Thanks! Cheers, Carsten ------------------------------------------------------------------------------ _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users