On Fri, Dec 12, 2008 at 1:19 PM, Melchior FRANZ <mfr...@aon.at> wrote:
> * Csaba Halász -- Tuesday 09 December 2008:
>
>> it creates the node and immediately removes it. So how does
>> the code in fgValidatePath trigger the listener?
>
> The validation interface has one reference since long before the
> Nasal code is even run (Main/util.cxx). The Nasal code above also
> gets a reference (returned by move() itself).

I suspected as much, but wasn't looking closely enough and missed that
the r and w variables are static in fgValidatePath. I have only seen
the fgGetNode and thought it is trying to look up the node on each
call, which obviously won't work as the nodes are already removed.
Anyway, thanks for the explanation.

As a side note, I don't think the fixes have been applied to cvs yet,
any volunteers? :)

-- 
Csaba/Jester

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to