Hi Patrice,

You could try things in osgDB::Registry

- use expiry time:
  addEntryToObjectCache(..., timestamp)
  removeExpiredObjectsInCache()

- Or remove all things in cache: clearObjectCache()

- Or replace the prvious one: addEntryToObjectCache(filename, [NULL or a dummy 
object]). Not sure "NULL" will work as expected here (to be tested).

Cheers,

Sukender
PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/

----- "Patrice Defond" <[email protected]> a écrit :

> Hi,
> 
> I would like to release an image, but there is a cache whose keep my
> image in memory. Even if i put my ref_ptr<os::Image> to NULL, the
> image is always in memory.
> Do you know how i can manually destruct my object but without
> desactivate Image Cache ?
> 
> Thank you!
> 
> Cheers,
> Patrice
> 
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=33229#33229
> 
> 
> 
> 
> 
> _______________________________________________
> 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

Reply via email to