----- "Frederic Bouvier" a écrit : > I am tracking a crash when selecting the c172p. Not sure it is related > to the other crash already seen, but anyway : > > In JSBSim.cxx, line 147 : > > fdmex = new FGFDMExec( (FGPropertyManager*)globals->get_props() ); > > in FGFDMExec.cpp, line 99: > > FGFDMExec::FGFDMExec(FGPropertyManager* root) : Root(root) > > in FGFDMExec.cpp, line 199: > > delete Root; > > So one can see that FGFDMExec.cpp is deleting the global property > tree, that is a smart pointer, not a real pointer by the way !!!!! > > Of course, it crash at the next use of the property tree.
I committed a temporary fix. An ideal fix would be that JSBSim use a SGPropertyNode_ptr instead of doing unsafe cast from SGPropertyNode to FGPropertyManager Regards, -Fred -- Frédéric Bouvier http://my.fotolia.com/frfoto/ Photo gallery - album photo http://www.youtube.com/user/fgfred64 Videos ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel