[osg-users] std::vector instances from osg::geode derived classerror

Thrall, Bryan bryan.thrall at flightsafety.com
Wed Nov 11 08:44:35 PST 2009


Thorsten Werner wrote on Wednesday, November 11, 2009 10:31 AM:
> Ahhh. Ok that worked. But now i uncommented
> 
> Code:
> this->addChild(ElementLower[count_width]);
> 
> It compiles but gives a "Segmentation Fault" at startup.

Not a lot of information to go on, but here's a WAG:

count_width is counting down, but ElementLower is growing, so
ElementLower[count_width] is not the same as the element you just passed
to push_back().

HTH,
-- 
Bryan Thrall
FlightSafety International
bryan.thrall at flightsafety.com


More information about the osg-users mailing list