Ok, thanks Robert, I'm updating my drivers first. If you can't see something
obviously wrong in what I do I guess I'm also using OSG with the stantard
way, so it must be something else.
Spyros.
----- Original Message -----
From: "Robert Osfield" <robert@openscenegraph.com>
To: "osg users" <osg-users@openscenegraph.net>
Sent: Friday, January 28, 2005 12:28 PM
Subject: Re: [osg-users] A Viewer question
> On Friday 28 January 2005 10:27, 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!
>
> The osgProducer::Viewer uses ref_ptr<> internally, and as far as I'm aware
> doesn't have an memory leaks associated with it. One thing to look out
for
> would be caching of models in osgDB::Registry, check to see if the
Registry
> is keeping you models around without you releasing them.
>
> The osgDB::Registry is uses reference counting throughout so again, once
it
> goes out of scope it should clean up memory safely.
>
> The other area of memory consumption could be OpenGL w.r.t texture objects
and
> display lists. Once the graphics context is deleted - this should happen
> when osgProducer::Viewer (via Producer::CameraGroup) cleans up.
>
> With standard usage of the OSG I would not expect problems, and generally
very
> few real memory problems are reported and if they are they are fixed
pretty
> quickly. Note VisualStudio's memory debugger is faulty so can lead to
many
> false positives w.r.t memory leaks.
>
> Also if the memory is leaking after your program has exited then this
looks
> very much like an OS / graphics driver problem. When a program exits the
OS
> should ensure that the resources are freed.
>
> Robert.
>
> _______________________________________________
> 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/
Received on Fri Jan 28 02:54:35 2005
This archive was generated by hypermail 2.1.8 : Fri Jan 28 2005 - 02:54:35 PST