Hi Markus, VS is known to report false positives due to issues of destruction order, i.e. it can report errors of objects that haven't been destructed yet but will be.
Put a break point in your NotifyHandler destructor to see if it's being called on exit. Robert. On 23 August 2012 13:57, Markus Hochstrasser <[email protected]> wrote: > Hi, > > I'm new here, and quite new in the OSG world :) > > I use Visual Studio 2008 with Visual Leak Detector to dump memory leaks. I > tried to rebuild an example from "OpenSceneGraph Beginners Guide" - page 58 > to redirect the OSG notify stream as follows. Unfortunately Visual Leak > Detector indicates a memory leak (new LogFileHandler...) - so I wonder if > this really a leak or just a false positive? Actually I cannot see the > error... > > > osg::setNotifyLevel( osg::INFO ); > osg::setNotifyHandler( new LogFileHandler("output.txt") ); <-- the > potential leak > > (Sorry I wanted to post the full code, but I get an error like "you need at > least 2 posts to include links/urls" even if my code doesn't include any urls) > > Thank your very much! > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=49450#49450 > > > > > > _______________________________________________ > 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

