Hi all, our team is currently facing a strage problem when deleting a osgTerrain instance loaded from a geotiff heightmap. When we delete an instance of osgTerrain, is damages the Qt OpenGL state. All widgets rendered within opengl canvas (by QPainter) gets crazy (totally non functional, qt starts rendering garbage). But when we recreate the terrain right after deleting it, the Qt state get restored (in that case the SO give us the same memory are by pure luck, since a shorte period of time has passed and the old memory are is still available).
One theory is that some point of Qt memory and osgTerrain memory is somehow being shared (due to an memory invasion or some other reason). When osgTerrain deletes its contents and tiles, it affects somehow other parts of program memory. I´ve read some issues with osgTerrain tile destruction, but I have never seen any patches to fix them. So, I thing that this maybe related to the same issues.. (possibly)... Does any one know if there is any really known issue with osgTerrain destructor and/or whether there is any solution to it? Even a temporay one.. Robert once said that using DatabasePager::setDeleteRemovedSubgraphsInDatabaseThread(false) should suppress a double delete problem. But I could find how to apply this line of code since I couldnt find DatabasePager instance.... Our app get in trouble when we delete osgTerrain instances and we really need that! Thank you in advance! Thanks!! ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=57474#57474 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org