Andoni Mujika wrote:
Hi Robert,
Sorry for not being very precise. I also tried osg::ref_ptr<>. Now,
the code looks like this:
osg::ref_ptr<osg::Vec3Array> m_geom;
/m_geom = (osg::Vec3Array*) ((dynamic_cast<osg::Vec3Array*>//
(m_NewGeom)->clone(osg::CopyOp::DEEP_COPY_ARRAYS)));
the memory grows and grows...
/
Are you developing on Linux? If so, you might want to give valgrind a
try and specifically its 'massif' tool. This allows you to track memory
usage during a programs run and can (in principle) provide you with
information where all the memory you're seeing was allocated.
Regards,
Paul
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org