Hi All,

After the latest update of FlightGear and SimGear from
CVS, a runtime error occurs on my system.

Problem : The program crashes just after startup
(before the splash screen goes off).

Platform: WIN 2000 and MSVC 6.0

How to reproduce:
1) in preferences.xml; use GameMode = true
2) Run the FlightGear

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.

PL guide if there is any other reason than what I have
concluded.

Thanks

Gopal Mor

__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to