On Tuesday 25 January 2005 15:21, Mielcarek, Donn wrote:
> Running Fedora Core 3 on an AMD 64-bit system.
>
> This call aborts if the file is a .BMP file:
>
> osgDB::readImageFile(imageFileName);
>
> with the message:
>
> terminate called after throwing an instance of 'std::bad_alloc'
> what(): St9bad_alloc
>
> Any help appreciated.
Could you generate a stack trace for the crash.
Just checking through the BMP plugin there is number of long instances in the
defination of some of the structures. And long's aren't then same length on
32bit vs 64bit builds so this is certainly an area for potential problems.
This issues recently bit us in the DDS plugin, which has now been solved in
the CVS version of the OSG.
Could you do a replace of 'long' with 'int32' in the plugin and then typedef
int32 to int. If this works then we know what the problems is :-)
If it does work then just send me the changed file and I'll integrate it with
the CVS version of the OSG.
Robert.
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
Received on Tue Jan 25 07:35:14 2005
This archive was generated by hypermail 2.1.8 : Tue Jan 25 2005 - 07:35:15 PST