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.
$ git log src/FDM/JSBSim/FGFDMExec.cpp
commit 68f54290481701429a04cd33c06be2674fc2b3a4
Author: Erik Hofman <[email protected]>
Date: Tue Oct 26 09:48:56 2010 +0200
Sync with JSBSim cvs + Anders' patch to get it working with FlightGear.
$ git show 68f5429048170
....
@@ -186,7 +193,17 @@ FGFDMExec::~FGFDMExec()
try {
checkTied( instance );
DeAllocate();
- if (Root == 0) delete master;
+
+ if (IdFDM == 0) { // Meaning this is no child FDM
+ if(Root != 0) {
DON'T DO THAT + delete Root;
+ Root = 0;
+ }
+ if(FDMctr != 0) {
+ delete FDMctr;
+ FDMctr = 0;
+ }
+ }
} catch ( string msg ) {
cout << "Caught error: " << msg << endl;
}
.....
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel