On 28 Oct 2010, at 10:00, James Turner wrote:

> I'll dig into this today, or possibly just give up on the Windows globbing 
> code and do the globbing myself, but if anyone on Windows with a Git build 
> and debugger wants to set a breakpoint in NasalSys.cxx, f_directory, they can 
> probably see what's going wrong.

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.

James


------------------------------------------------------------------------------
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