Hi Patrice, Got two ideas : 1. addEntryToObjectCache(filename, new MyDummyEmptyObject());
2. addEntryToObjectCache(...., 0.0001); removeExpiredObjectsInCache(); (if and only if this does not interract negatively with the rest of your app). I personnally prefer the first one. If it still doesn't work, try using a debugger and trace when the image gets referenced. Cheers, Sukender PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/ ----- "Patrice Defond" <[email protected]> a écrit : > Thank for your help Sukender. > > I can't use the methods removeExpiredObjectsInCache and > clearObjectCache because the rest of my application need the cache. > > It is very specific for a module : it loads big images. > > So i test addEntryToObjectCache. > - With NULL in object : OSG make an error ("Error file does not > contain an osg::Object") > - if i call the function with a timestamp to 0 or 0.001 ... but my > object is not release. > > > Do you have more ideas ? > > Cheers, > Patrice > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=33237#33237 > > > > > > _______________________________________________ > 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

