PDA

View Full Version : Location Table not correct



danward79
May 15th, 2005, 03:15 PM
Hi,

Was having a little play with G4 tonight and found that the location table was not storing my location correctly.

Using the following I get


Location = gir.GetLocation()
print ("****")
table.foreach (Location, print)
print ("****")

I get the following output


****
City United Kingdom
Longitude 1.8712764451957e-301
Latitude -0.1833
Zipcode Sussex
****

In settings I have the following.

City - Hove
State - Sussex
Country - United Kingdom
Long - -0.1833
Lat - 50.8333

Does anyone else have this issue?

Rob H
May 16th, 2005, 03:36 PM
I can confirm this in g4a17, and also that it worked correctly in g4a14. (Not tried the intermediate versions).

On first starting g4a17 the location values for city, state and country were gibberish - mostly unprintable characters.

Where does G4 store the location - can't find it in the registry.

Ron
May 16th, 2005, 04:02 PM
Registry location:
HKEY_LOCAL_MACHINE\SOFTWARE\Promixis\Girder\4

After you corrected does it still give you the incorrect values?

Rob H
May 16th, 2005, 04:16 PM
Ah, it only saves it when you close Girder!

The registry is showing the correct values, but gir.GetLocation() is clearly returning the wrong values.

Ron
May 17th, 2005, 12:25 PM
I am having a hard time recreating the error in the location table. Can you give me a step by step on how to have it happen?

Rob H
May 17th, 2005, 12:59 PM
Dan's first message in this thread gives pretty much all the details.

Looks like an off-by-one error to me, note that the value for latitude is what was set as Longitude and the longitude value is complete gibberish.

Ron
May 17th, 2005, 03:36 PM
Fixed in next release.

Rob H
May 17th, 2005, 04:07 PM
What was the problem?

Ron
May 17th, 2005, 04:09 PM
structure mismatch between Girder.exe and Girder.dll.

Rob H
May 17th, 2005, 04:11 PM
Ah, that makes sense. Almost an off-by-one error then :)

Ron
May 17th, 2005, 04:16 PM
pretty much :-)