Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Location Table not correct

  1. #1
    Join Date
    Nov 2003
    Location
    Hove, E Sussex, UK
    Posts
    4,005

    Default Location Table not correct

    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

    Code:
    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?
    Thx, Dan

    Onwards and Upwards!
    http://www.danward.co.uk

  2. #2
    Join Date
    May 2004
    Location
    Cardigan, UK
    Posts
    9,278

    Default

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

  3. #3
    Join Date
    Jan 2000
    Location
    Jupiter, FL
    Posts
    11,349

    Default

    Registry location:
    HKEY_LOCAL_MACHINE\SOFTWARE\Promixis\Girder\4

    After you corrected does it still give you the incorrect values?
    Ron
    No support through PM

  4. #4
    Join Date
    May 2004
    Location
    Cardigan, UK
    Posts
    9,278

    Default

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

  5. #5
    Join Date
    Jan 2000
    Location
    Jupiter, FL
    Posts
    11,349

    Default

    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?
    Ron
    No support through PM

  6. #6
    Join Date
    May 2004
    Location
    Cardigan, UK
    Posts
    9,278

    Default

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

  7. #7
    Join Date
    Jan 2000
    Location
    Jupiter, FL
    Posts
    11,349

    Default

    Fixed in next release.
    Ron
    No support through PM

  8. #8
    Join Date
    May 2004
    Location
    Cardigan, UK
    Posts
    9,278

    Default

    What was the problem?
    --Rob

  9. #9
    Join Date
    Jan 2000
    Location
    Jupiter, FL
    Posts
    11,349

    Default

    structure mismatch between Girder.exe and Girder.dll.
    Ron
    No support through PM

  10. #10
    Join Date
    May 2004
    Location
    Cardigan, UK
    Posts
    9,278

    Default

    Ah, that makes sense. Almost an off-by-one error then
    --Rob

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •