Hi Joerg,
works fine with my .net 2003 build.
Andreas
Hello OpenSG-users!
I've tried to build OpenSG (some snapshots from 5. - 20. June) using VS
.NET 2003 and cygwin. Well it produces nice DLLs but running a complex
program (like the tutorial 01hello ;) ) results in a crash.
The crash happens in SharedObject::open(), line 185:
--snip----------------------------------
bool SharedObject::open()
{
const Char8 *libName = NULL;
if(_pHandle != NULL)
{
return true;
}
if(_type == SharedLibrary)
{
libName = _szName.c_str();
}
#ifndef WIN32
#ifdef OSG_DLOPEN_LAZY
_pHandle = dlopen(libName, RTLD_LAZY);
#else
_pHandle = dlopen(libName, RTLD_NOW);
#endif
if(_pHandle == NULL)
{
FWARNING(("Could not open shared object : %s\n", dlerror()));
}
#else
_pHandle = LoadLibrary(libName); // <-- CRASH, libName == 0
#endif
return (_pHandle != NULL);
}
--snap----------------------------------
Here is the stack trace:
--snip----------------------------------
OSGBaseD.dll!osg::SharedObject::open() Line 185 + 0xc C++
OSGBaseD.dll!osg::SharedObjectHandler::getSharedObject(const char *
szName=0x00000000) Line 368 C++
OSGBaseD.dll!osg::SharedObjectHandler::initialize() Line 482 + 0xa C++
OSGBaseD.dll!osg::osgInit(int __formal=1, int __formal=1) Line 189 +
0xc C++
01hello.exe!main(int argc=1, char * * argv=0x021373a8)
--snap----------------------------------
My configure options include --with-compiler=cl.net2003 and
--enable-win-localstorage.
Happy Debugging! ;-)
Joerg.
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users