Hi Antoine, Is it just the OSGA plugin that you are having an issue with it holding a file handle? If so you could try calll close() on the Archive the the plugin has loaded - the Archive will be cached in the Registry. Or you could try the Regisytr::clearArchiveCache() method.
Robert. On 9/30/07, Antoine Hue <[EMAIL PROTECTED]> wrote: > Hello, > > I want to overwrite a .osga file from a child process while the same > file is shown in the main process's viewer. > At the beginning I did it brutal: rewrite the file without checking. It > worked OK for Linux but was crashing on Windows in case of LODed scene > graph within the .osga. I have added a temporary/shadow file and it > works still under Linux but not under Windows. The only case it works > is when the file does not already exist. I suspect that Windows file > protection is sticking again: "Cannot delete file XXX since it is used > by another application.". > > I have removed (many frames ahead) the top node from the scene graph of > the main viewer but still cannot overwrite the file. > > Is there a way to check or force that osgDB is releasing completely the > file handle ? > > Thanks in advance, > > Antoine > _______________________________________________ > 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

