[osg-users] troubles with osgDB::readImageFile

2011-06-21 Thread Sergey Alekseev
Tell me please, why doesn't work function readImageFile? In OpenSceneGraph examples it is called like osg::Image * img = osgDB::readImageFile (filename); I get exception - heap allocation error. The size that function tries to allocate is ~ 3458768586 bytes (picture size is 4 KB).

Re: [osg-users] troubles with osgDB::readImageFile

2011-06-21 Thread Robert Osfield
HI Sergey, There isn't anyway anyone in the community can answer your question as there just isn't a fraction of the required information for us to guess. Details that would be useful are: file type you are trying to load An example of the image that causes the failure. What version of

Re: [osg-users] troubles with osgDB::readImageFile

2011-06-21 Thread Jean-Sébastien Guay
Hello Sergey, I get exception - heap allocation error. The size that function tries to allocate is ~ 3458768586 bytes (picture size is 4 KB). Pre-complilated examples work well. Compilator VC++ 2010 Express. It sounds like you're mixing debug/release libraries / executable. You need to