Hi James,

----- "James Turner" a écrit :

> On 28 Oct 2010, at 10:05, James Turner wrote:
> 
> > Looking at the code now, both in gui.nas and NasalSys.cxx, I can
> make a more specific guess: the 'directory exists' check seems to be
> failing, which means we return naNil, which doesn't have a .size
> property - of course.
> > 
> > If someone could see what kind of paths are being passed in, and if
> they're confusing simgear::Dir::exists() on Windows, that would be
> great. Livery selection (which is what this code implements) works
> fine on POSIX - it's what I used to exercise the Nasal routines when
> making the change.
> 
> Vivian has basically confirmed this hypothesis - simgear::Dir::exists
> is not working right on Win32. I won't be able to dig into this until
> much later this evening, if anyone else fancies setting some
> breakpoints in the code and seeing where the logic is borked, that
> would be much appreciated.
> 
> James

stat returns an error when directory path ends with a / (sg_path.cxx, line 215)

-Fred

-- 
Frédéric Bouvier
http://my.fotolia.com/frfoto/              Photo gallery - album photo
http://www.youtube.com/user/fgfred64       Videos


------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to