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