Hi,
I'am just beginner of osg. We I test the code of loading a model and dislay it
in the screen. I have met a problem.
My code is
#include
#include
int main(int argc,char** argv)
{
osgViewer::Viewer viewer;
osg::Node* Node_Reader=NULL;
Node_Reader=osgDB::readNodeFile("C:\\Program
Files\\OpenSceneGraph\\data\\clock.org");
viewer.setSceneData(Node_Reader);
return viewer.run();
}
There is no problem of compilation, but the program is lanched, it is blocked
in the phrase osgDB::readNodeFile.
The information of error is like this:
Unhandled exception at 0x7c812afb in OSG_Rugby.exe: Microsoft C++ exception:
std::bad_alloc at memory location 0x0012f5c4..
The enviroment is :windows 7+VS2008+osg 2.99
Thank you!
Cheers,
simon
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=48590#48590
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org