Hi Malcom,

There really isn't enough info from your post about what your wider
application code and how it relates to this callback and the data is
referencing to guess at what might be wrong.   The only thing hint
that code provides is that you're using a global to pass in the data
to modify, this is not a recommended programming practice and may well
be the cause of your problems.

Robert.

On Sun, Dec 28, 2008 at 1:41 PM, Malcom Poiter <[email protected]> wrote:
> 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
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to