From: Frederic B. <fre...@fr...> - 2010-10-29 07:29:56
|
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 |