Hi Renato, A trick we use in the OSG to prevent problems like this is to place the destructor of the class into the protected or private sections, these prevents these classes being allocated on the stack, forcing the user to use new. I would recommend using this approach on your Mesh class as this would have enabled the compiler to give you a warning about your problem usage.
Robert. On 8 March 2012 18:25, Renato Oliveira <re...@hotmail.com> wrote: > Hi, > > i finaly solved the problem. I kind of feel stupid with this issue. I was > creating the my mesh class with out allocating memory for it. > > Mesh mesh; //wrong > > Mesh* mesh = new Mesh; //right > > thanks again for the advices > > Thank you! > > Cheers, > Renato > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=46111#46111 > > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org