Gerrit Voss wrote: > Hi, > > >>Gerrit Voss wrote: >> >>>Hi, >> >>OK. I did build and test a locally modified copy of the latest CVS >>version >>of OpenSG with OSG::osgExit() extended to call >>OSG::SharedObjectHandler::terminate(). With this change, the crash I was >>seeing is fixed. > > > just curious, where did you put it ?
Right after the #ifdef'd call to OSG::FactoryController::terminate(). I attached a patch for the sake of clarity. > Side question does the plugin > contain own FieldContainers or just use the existing ones ? No, it doesn't have any of its own FieldContainers. The main class is one that derives from OSG::SceneFileType. The rest of the code is support for that class. -Patrick -- Patrick L. Hartling | VP Engineering, Infiscape Corp. PGP: http://tinyurl.com/2msw3 | http://www.infiscape.com/
Index: OSGBaseFunctions.cpp
===================================================================
RCS file: /cvsroot/opensg/OpenSG/Source/Base/Base/OSGBaseFunctions.cpp,v
retrieving revision 1.9
diff -u -5 -r1.9 OSGBaseFunctions.cpp
--- OSGBaseFunctions.cpp 2 Jun 2005 07:23:43 -0000 1.9
+++ OSGBaseFunctions.cpp 19 Jul 2005 21:41:50 -0000
@@ -329,10 +329,11 @@
GlobalSystemState = Shutdown;
#ifdef OSG_GV_BETA
returnValue &= FactoryController::the()->terminate();
#endif
+ SharedObjectHandler::the()->terminate();
if(osgSystemExitFunctions != NULL)
{
for(Int32 i = osgSystemExitFunctions->size() - 1; i >= 0; i--)
{
signature.asc
Description: OpenPGP digital signature
