Have you considered using a Switch Node instead?

If your first root was reference-counted and the Viewer was the only Object referencing it, I'm not surprised your app crashed.

Paul Martz
Skew Matrix Software


On Dec 28, 2007, at 6:50 AM, "maruti borker" <[EMAIL PROTECTED]> wrote:


I have a single viewer , and two different root nodes ... When the program loads i initialize the viewer with the first root . Then on a keypress i change my viewer scene data to second root . And i also have a kepress by which the viewer should go back to earlier root ( i,e first root ) . The first keypress is working .. but the second key press is giving a segmentation fault ...On debuggin i found that the viewer.setSceneData(root1) is giving a seg fault.

Any idea why this is happening ??
Cant we change hte sceneData in between ?
--
----------------------------------------------
Maruti Borker
IIIT Hyderabad
Website:- http://students.iiit.ac.in/~maruti
Blog:- http://marutiborker.wordpress.com
_______________________________________________
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

Reply via email to