Thorsten Werner wrote on Wednesday, November 11, 2009 11:47 AM: > Hi, > It only gives a segfault if count_width is higher than 1. I've no idea what > could be wrong...
Try looking at it in a debugger and compare count_width with the current size of the vector. For example, if count_width is 5, your code does: ElementLower.push_back(new TGWidgetElement()); // vector size is now 1 addChild(ElementLower[5]); // there is no such element! HTH, -- Bryan Thrall FlightSafety International [email protected] _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

