Hi All,
After the latest update of FlightGear and SimGear from CVS, a runtime error occurs on my system.
Probable Cause: I tried to debug it and found that FGReshape() function tries to use current_panel (of FGGlobals) pointer even before it is assigned to valid panel object. And since there is no default initialization ( should be there in the constructor of FGGlobals - initialize it to NULL) it is pointing to memory in non-accessible area. This causes the program to abort abnormally.
Probable Solution: All the pointers in FGGlobals should be initialized to NULL ( or to some valid appropriate memory) in the constructor of FGGlobals. The overheaed will not be much, as the FGGlobals object is created only once.
It is actally a bit more compilcated than this, but you are right about current_panel being used before is was intialized. This should be fixed in CVS now.
Thanks for catching this!
Erik
_______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
