On 27 Oct 2010, at 22:01, Vivian Meazza wrote:

> Happens here too. I get:
> 
> Nasal runtime error: object has no size()
>  at D:/Git_New/fgdata/Nasal/gui.nas, line 406
>  called from: D:/Git_New/fgdata/Nasal/gui.nas, line 395
>  called from: D:/Git_New/fgdata/Aircraft/Generic/formation.nas, line 46
>  called from: D:/Git_New/fgdata/Nasal/globals.nas, line 100

I suspect this is a Windows problem, since everything works fine here, and for 
some other folks running Git. My guess is my handling of shell globbing in 
simgear::Dir is subtly different between POSIX and Win32, meaning that a 
directory enumeration call is failing on Windows, so the aircraft's Nasal 
scripts don't get loaded.

(A couple of days ago I switched all the remaining uses of ulDir to use 
simgear::Dir - including the one that implements the Nasal directory() helper)

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.

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