Hi, I am loading *.shp file in my program. In some files program works fine (mostly shape file with lines) but in some other files program crashed. My code is :
... osg::Geode* geode = dynamic_cast < osg::Geode* > (osgDB::readNodeFile("Test.shp")); osg::ref_ptr < osg::Group > group(new osg::Group); osg::ref_ptr < osgViewer::Viewer > mViewer(new osgViewer::Viewer); group->addChild(geode); mViewer->setSceneData(group.get()); mViewer->run(); ... Is it correct way? I am using WindowXp 32 bit os, osg 2.8.5 prebuilt library. Thank you! Cheers, Lalit ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=44446#44446 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org