Hi Neil,

Its well established that their are problems with the memory leak reporting in VS, so often you'll get false positives.  See the archives for discussion on this.  Whether your leaks are real or phantom ones I can't say.

Robert.

On 10/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote:
Hi All,

I'm having problems with memory leaks, and was hoping that someone might be able to assist.

First some history.
I'm writing an ActiveX control to wrap lots of the functionality that osg gives within a control tailored to my needs. This is working really rather well, however I am plagued by memory leaks.

In an effort to track these down I have progressively cut out chunks of code to the point where I'm merely starting the control. What I mean by this is that I'm creating the "Control" but not creating a viewer of any sort. In fact the only call I'm making into osg is to set the directory path. That is it. Nothing else. Honest ;-(

When I shut down the control, I get massive memory leaks all stemming from osg. Some of them are linked to recognisable constant strings that are defined within the osg dll's that I am loading up. Others are less recognisable.

I can give a "for instance" here. When I start the control I call

osgDB::Registry::instance()->setLibraryFilePathList(data);

This creates a static instance of the registry object. However the destructor for this object appears not to be called. It seems as if I have to make the following call when I shut down the control.

osgDB::Registry::instance(true);

I suspect that I'm doing something incorrect, or not making a call that I should be, however these constant strings and objects are a real pain.

Can anyone suggest what might be going wrong please

Many thanks for any help

Neil.

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to