Hi again,

because I suspected the visual studio STL-"interpretation" to be responsible for the error I mentioned, I now tried to use STLPort to build the given program. But then I got an unresoved external for every osg-function with std::string arguments. Will I have to recompile osg or is there a way to make osg compatible with STLPort ( 4.6.2)?

thanks,

Frans

ps: I also tried to use osg-1.2 instead of osg-1.0 but unfortunately similar runtime-errors occour..



2006/9/26, Frans Fürst < [EMAIL PROTECTED]>:
Hi there,

I don't know wether I found a bug or I'm just doing something wrong, but I'm confronted with a very odd behaviour working with osgDB.

On one machine (Win XPprof SP1, P4, osg-1.0, Visual Studio 7.1) the following code produces an
"Unhandled exception at 0x7c3417fb (msvcr71.dll) in BMW_ECV_QT.exe: 0xC0000005: Access violation reading location 0x00000000.":

osg::Geode * load_image( const std::string &a_name, double a_width, double a_height ){

    osg::Image *l_image1 = osgDB::readImageFile( "u1.bmp" );
}


in the readImageFile - line.

Following code:

osg::Geode * load_image( const std::string &a_name, double a_width, double a_height ){

    osg::Image *l_image2 = osgDB::readImageFile( "auspuffanlage.bmp" );
    osg::Image *l_image1 = osgDB::readImageFile( "u1.bmp" );
}

is woking well.

The exeption also doesn't occour, on a different machine - same osg, same VS, same code but Win2000 SP4 on P4m.

Additional hint: when the bmp-plugin isn't available the program crashes _before_ I'm told that the plugin is missing..

what to do? Renaming my image files? :)

thanks,

Frans



_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to