Hello,
I'm getting this error "map/set iterator not dereferencable" after few
frames. It only occurs if I update an osg::text object I use to
display the camera coordinates on screen using a HUD.
osgText::Text* coordinateText;
.
.
.
struct DrawableUpdateCallback : public osg::Drawable::UpdateCallback
{
char buf[400];
sprintf_s(buf,"%d %d
%d\n",(int)(cam_pos.x()/1000),(int)(cam_pos.y()/1000),(int)(cam_pos.z()/1000));
coordinateText->setText(buf);
}
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org