27 Jul 2012 17:32
Re: Program crashes after running for a fewseconds/mins--issue with push_back()
Praveena Sara wrote on 2012-07-27: > >> OSG can do the cull traversal in a separate thread from the draw, so it >> might be drawing the beam while you are modifying the points array. If >> switching to SingleThreaded mode prevents the crash, > > > Making the viewer single threaded worked! > > > Code: viewer.setThreadingModel(osgViewer::Viewer::SingleThreaded); > > > > Thanks a lot! > :) Glad I could help :) Did setting the DataVariance on the Geometry to DYNAMIC (but keeping the default threading model) work? That would be a better solution because you still get the benefits of parallel cull and draw for everything in the scene that is not DYNAMIC. -- Bryan Thrall Principal Software Engineer FlightSafety International bryan.thrall@...
RSS Feed