Hi Fan, You seem to be newbie at understanding what level of information is required to debug stuff locally, let alone remotely as you are expecting the community to do here. We aren't clairvoyant.
If you get a seg fault the first thing you do is use a debugger to get a stack trace. This stack trace will give you your first clue as to what the problem might be. Without this information you or anybody else will be able to divine what might be amiss. Also if you want help you'll need to provide more info, like OSG version, OS version, compiler used. The OSG also doesn't negatively have a citygml support, so you'd need to tell us about where you are getting this from, and whether it's know at all whether you readNodeFile is generating a valid file or not. Robert. On 14 September 2012 10:47, Fan ZHANG <[email protected]> wrote: > Hi all, > > I have a problem that if I put the contents of the function 'findVertices' > directly here, it runs perfectly. But if I separate it out and just call it > here, it compiles well but when it runs, it gets the error of Segmentation > fault (core dumped).... > > > strange? > > int main( int argc, char** argv) > > { > > std::string file; > file = "..............citygml"; > > findVertices(file); > > osgViewer::Viewer viewer; > viewer.setSceneData(osgDB::readNodeFile(file)); > viewer.run(); > > return 1; > } > > > Thank you! > > Cheers, > Fan > > ------------------------ > ohhhhhhhhhhhhhh newbie to OSG...................... > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=50048#50048 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

