[Flightgear-devel] Two problems - 1 easy and 1 hard! - in XP using MSVC7

2005-10-20 Thread Geoff Air

Hi all,

Last CVS update Oct 19.

1. The Easy fix

When trying --airport=LFPO, after downloading, and
installing the required scenery ... FG exited with -
Adding subsystem gui
fgtzfile_read(): : Invalid argument
Timezone reading failed
in the console ...

This turned out to be the usual file line ending problem ...
mine has the 'normal' WIN32 0x0d, 0x0a, ending,
and could be solved by 'fixing' the zone.tab file, or, as I
would suggest, a small 'fix' in SimGear, timezone.cxx ...

Changing the line 104, in timezone.cxx -
while (!((infoString[i] == '\t') || (infoString[i] == '\n'))) {
to a more robust, cross platform search ...
while (!((infoString[i] == '\t') || (infoString[i] == '\n') || 
(infoString[i] == '\r'))) {

and all is well ...

Looking further into this, I note that the zone.tab in the Fred B.
binary release (from fgsetup-0.9.8a.exe) is in unix format!
Then why does my CVS update file have 0x0d,0x0a? I
am sure it is unix format on the server, is it not?

I delete my local old copy (22/10/2000), and did another
update, and it returns, with 0x0d,0x0a. I have read
somewhere that some FTP clients handle, cause this
change, transparently!!! If true, another reason to
adjust the code, rather than the file each time ... ;=))
Maybe there is a CVS command to inhibit this
change, if that is where it happens ...

As part of this investigation I note that
fgInitTimeOffset(), the service that uses the information
from the zone.tab load, is called twice ... first as part of
fgInitSubsystems() (idle_state == 7), with the code comment -
fgInitTimeOffset(); // the environment subsystem needs this
and then again in idle_state == 8, with the code comments
 // Initialize the time offset (warp) after fgInitSubsystem
 // (which initializes the lighting interpolation tables.)
 fgInitTimeOffset();
This does not cause any problem, since the loader is
quite tidy in deleting the previous allocations ...

And for those wondering why this does not occur with
the default KSFO, that particular Los_Angeles line in the
tab file has a comment, thus an extra tab, which is
discarded ...

2. The Hard find

I am getting an exception ABORT again, and again, especially
since I changed to using LFPO ... the console does not help
much, log level debug, the last lines just showing -
Unknown exception in the main loop. Aborting...
Possible cause: No error
Deleting a sample ... (written another 4 times!)

Actually this could be two different ABORTS. One is
during the start-up, before the flash fades, which I suspect
is due to one of my system.fgfsrc file 'disable' lines, and the
other is after a few, plus minutes of running ... I know not
why ...

I am still trying to track this/these down ... are any other
Windows XP SP2 - MSVC7 users getting this/these? Any
ideas welcome ... I would like to get back to smooth
flying ...

Regards,

Geoff.

OT1: It has been a few years since my last post ... but
have been reading here, and playing with FG/TG, now and then ...
Usually, when there is a MSVC question, that I could
add to, Fred B. is so fast to answer ... Thanks Fred ;=))

OT2: Also for quite a few years now, I have been adding
my FG experiences to my site - it all starts at -
http://geoffmclane.com/fg
Excuse the long, rambling, quite messy, site ;=))

The latest build, and these ABORTS are here -
http://geoffmclane.com/fg/fgfs-014.htm,
and it continues, a follow-on ...
http://geoffmclane.com/fg/fgfs-015.htm
if you can stand the pain ...

EOF

_
SEEK: Over 80,000 jobs across all industries at Australia's #1 job site.   
http://ninemsn.seek.com.au?hotmail



___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] Two problems - 1 easy and 1 hard! - in XP using MSVC7

2005-10-20 Thread Harald JOHNSEN

Geoff Air wrote:


...
This turned out to be the usual file line ending problem ...
mine has the 'normal' WIN32 0x0d, 0x0a, ending,
and could be solved by 'fixing' the zone.tab file, or, as I
would suggest, a small 'fix' in SimGear, timezone.cxx ...

Changing the line 104, in timezone.cxx -
while (!((infoString[i] == '\t') || (infoString[i] == '\n'))) {
to a more robust, cross platform search ...
while (!((infoString[i] == '\t') || (infoString[i] == '\n') || 
(infoString[i] == '\r'))) {

and all is well ...


I just tried : I did delete the file zone.tab then made a checkout.
The checkout gives me a 'text' file with msdos line endings. I don't 
understant why.
The zone.tab from the 0.9.8 package from F.B. contains the file with a 
unix line-ending.



2. The Hard find

I am getting an exception ABORT again, and again, especially
since I changed to using LFPO ... the console does not help
much, log level debug, the last lines just showing -
Unknown exception in the main loop. Aborting...
Possible cause: No error
Deleting a sample ... (written another 4 times!)
...
I am still trying to track this/these down ... are any other
Windows XP SP2 - MSVC7 users getting this/these? Any
ideas welcome ... I would like to get back to smooth
flying ...


There is no startup abort for xp with the one week ago cvs.
You should trap the exceptions (set that in the debug menu) to find the line
that throw the exception.

Harald.


___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d