* Jon S. Berndt -- Thursday 23 March 2006 13:47:
> > One could assume that it's because FDM/JSBSim.[ch]xx uses a lot of
> > unguarded pointers to SGPropertyNode-s that it doesn't own.

FDM/JSBSim/JSBSim.hxx stores property pointers in SGPropertyNode*.
This doesn't guarantee that the nodes remain valid. Some other module
could theoretically remove one -- any Nasal scripting code could! --,
after which JSBSim would probably crash. The preferred way to store
node pointers is as SGPropertyNode_ptr. Those make sure that the node
remains valid until the last instance is deleted.

It doesn't seem to be a real problem here -- at least I couldn't
make fgfs crash by removing such nodes. Should still get changed,
though, unless I'm missing something.  :-)

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to