[converting SGPropertyNode* to SGPropertyNode_ptr]

* Jon S. Berndt -- Saturday 25 March 2006 00:27:
> Go ahead. Have you tested it? With several aircraft of different types? I'll
> eventually add it in to JSBSim CVS, but have visitors this weekend.

Testing several aircraft wouldn't make much sense. But I've delayed that
anyway. There are some more header files and I'll start to convert those
first -- slowly, over time. JSBSim doesn't need to be the first.  :-)

For those asking themselves why this should suddenly be a problem, after
these headers worked fine for years. There are two reasons: (A) we are
now removing nodes more often than in the past. A few years ago this was
really only done in dialog.cxx, but now Nasal becomes more heavily used,
and every Nasal script can pull property nodes out from under subsystems
that aren't prepared for that. But the main reason is (B): A *long* time
ago someone disabled all subsystem destructors, apparently to fix a nasty
problem shortly before a release (at least I hope that this was the
reason). And then this never got enabled again, until recently. Now all
subsystems are expected to terminate cleanly. And those which relied on
once fetched node pointers being valid "forever" can now cause crashes
on exit. Doesn't happen often, fortunately.

m.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to