Hi, On Wed, 2010-03-24 at 10:19 -0500, Carsten Neumann wrote: > Hello Theodore, > > Hall, Theodore wrote: > >> >From my perspective: I'm writing a DLL that (I hope) can be safely > > loaded, unloaded, and reloaded multiple times from one process, meaning > > multiple calls into osgInit() and osgExit(). If something isn't clean > > at exit, I need to know about it. > > uhm, normally it is not possible to make multiple calls to > osgInit/osgExit. When osgExit runs it destroys objects that were created > as a side effect of static initialization (mainly type registration) and > unless there is a way to rerun that static initialization there is no > way these objects can be brought back to life. > Does static init run for a second time if you reload a DLL (after > unloading it in the meantime)?
yes it does, see Source/Contrib/CSMPlugin/SimpleTest kind regards gerrit ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users