I think I might have goofed... I compiled simgear without __MINGW32__
defined.  I'm in the process of recompiling the lib; I'm pretty sure that's
what was tripping things up.  

Thanks,
Vance

-----Original Message-----
From: Curtis L. Olson [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 20, 2004 12:20 PM
To: FlightGear developers discussions
Subject: Re: [Flightgear-devel] FDM from file broken?

Vance Souders wrote:

> I've looked into this further and it seems that FGNative::process() 
> fails when reading in FDM data from the file.  Process() calls 
> io->read(...) asking for a 1704 byte chunks from the input file.  
> After one or two successful 1704 reads, io->read(...) returns 
> indicating that it couldn't read another 1704 bytes from the file and 
> FGNative::process() dies.  This happens even though the total numbers 
> of bytes read from the file are no where near its total size.  Unless 
> I've set something up incorrectly, it looks like this functionality is 
> broken.  Does anyone know if this is a known issue?  Replay 
> functionality is very important to me, so if it's broken I'll take the 
> time to fix it; I just want to make sure it's not something I've set 
> up incorrectly.  Also, I'm running FlightGear on Windows XP.
>
>  
>

It could be that process() is reading the entire file the first time.

This makes sense in the context of a net connection where you want to 
grab all pending messages and just use the most recent one, but doesn't 
make sense in the context of a file obviously.  "file" should be special 
cased, but perhaps it's been overlooked for the native protocol?

Curt.

-- 
Curtis Olson        http://www.flightgear.org/~curt 
HumanFIRST Program  http://www.humanfirst.umn.edu/
FlightGear Project  http://www.flightgear.org
Unique text:        2f585eeea02e2c79d7b1d8c4963bae2d


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

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

Reply via email to