Hi all, Don,
I'm still having the same problem. I'm running on P4 1.6, Windows 2000 SP4, NVIDIA GeForce FX5700. I've updated my card drivers, removed all of my code and left only this loop:
bool run()
{
for(int loop=0;loop<36;loop++)
{
osg::ref_ptr<osg::Node> test=osgDB::readNodeFile("cessna.osg");
osgProducer::Viewer viewer;
viewer.setUpViewer(osgProducer::Viewer::STANDARD_SETTINGS);
viewer.realize();
while( !viewer.done() )
{
viewer.sync();
viewer.update();
viewer.frame();
}
viewer.sync();
}
return true;
}
..and when if loop ends (before exit) I have a memory usage ~25MB more than the first than the first while loop. I've noticed that OpenThreadsWin32.dll and Producer.dll are always in memory, although I call osgDB::Registry::instance()->closeAllLibraries().. If it isn't an OS memory problem, is there something I can do to shutdown the 2 dlls?? Is there a windows - graphic card configuration without this problem reported??
Thanks, Spyros.
----- Original Message -----
From: "Don Burns" <don@andesengineering.com>
To: "osg users" <osg-users@openscenegraph.net>
Sent: Friday, January 28, 2005 8:19 PM
Subject: Re: [osg-users] A Viewer question
>
> Thats your operating system that has the memory leak.
>
> On Fri, 28 Jan 2005, Spyros Garyfallos wrote:
>
> > Hi Robert,
> >
> > I've created a dll which passes my data to OSG. I manually close all
> > libraries. I noticed that memory usage (windows) increased and when I
> > commented out the viewer code the memory remained stable. When I used
> > viewer, I had an increase ~15MB each time I run my program. Finally, windows
> > virtual memory reached 2GB!
> >
> > Spyros.
> >
> >
> >
> > ----- Original Message -----
> > From: "Robert Osfield" <robert@openscenegraph.com>
> > To: "osg users" <osg-users@openscenegraph.net>
> > Sent: Friday, January 28, 2005 11:27 AM
> > Subject: Re: [osg-users] A Viewer question
> >
> >
> > > What makes you think that you have a memory leak?
> > >
> > > On Friday 28 January 2005 09:33, Spyros Garyfallos wrote:
> > > > Hi all,
> > > >
> > > > I have probably an already answered question, but I can't find anything
> > in
> > > > the mailing list. I create my graph using osg::ref_ptr. If I comment out
> > > > the following code, all the memory my program uses is finaly released.
> > But
> > > > if I don't, it has a huge memory leak. I guess that when viewer is done,
> > > > it's not deleted and holds up a pointer to my graph, so my graph is also
> > > > not deleted.
> > > >
> > > > What should I do to free all the memory viewer holds?
> > > >
> > > > Thanks, Spyros.
> > > >
> > > > osgProducer::Viewer viewer;
> > > > viewer.setUpViewer(osgProducer::Viewer::STANDARD_SETTINGS);
> > > > osgUtil::Optimizer optimizer;
> > > > optimizer.optimize(SkyRoot.get());
> > > > viewer.setSceneData(SkyRoot.get());
> > > > viewer.realize();
> > > > for(osgProducer::OsgCameraGroup::SceneHandlerList::iterator
> > > > itr=viewer.getSceneHandlerList().begin();
> > > > itr!=viewer.getSceneHandlerList().end();
> > > > ++itr)
> > > > {
> > > > // switch off small feature culling to prevent the light points from
> > being
> > > > culled. osgUtil::SceneView* sceneview = (*itr)->getSceneView();
> > > > sceneview->setCullingMode( sceneview->getCullingMode() &
> > > > ~osg::CullStack::SMALL_FEATURE_CULLING); }
> > > > while( !viewer.done() )
> > > > {
> > > > viewer.sync();
> > > > viewer.update();
> > > > viewer.frame();
> > > > }
> > > > viewer.sync();
> > >
> > > _______________________________________________
> > > osg-users mailing list
> > > osg-users@openscenegraph.net
> > > http://openscenegraph.net/mailman/listinfo/osg-users
> > > http://www.openscenegraph.org/
> >
> > _______________________________________________
> > osg-users mailing list
> > osg-users@openscenegraph.net
> > http://openscenegraph.net/mailman/listinfo/osg-users
> > http://www.openscenegraph.org/
> >
> >
>
> _______________________________________________
> osg-users mailing list
> osg-users@openscenegraph.net
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.2 - Release Date: 1/28/2005
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
Received on Mon Jan 31 05:00:21 2005
This archive was generated by hypermail 2.1.8 : Mon Jan 31 2005 - 05:00:26 PST