Results 1 to 3 of 3

Thread: some bugs...

  1. #1
    Constant Bitrate
    Join Date
    Mar 2006

    some bugs...

    'Calc GPS speed on current unit
    SPD = GPS.speed * IIf(ISUnits, 1.1852, 1.150779)

    should be

    SPD = GPS.speed * IIf(ISUnits, 1.852, 1.150779)

    wrong types (only examples):
    UseVars.Add "False", "speedatt" -> UseVars.Add False, "speedatt"
    UseVars.Add "True", "speedattmute" -> UseVars.Add True, "speedattmute"
    UseVars.Add "70", "speedattvolzero" -> UseVars.Add 70, "speedattvolzero"

    if you enter everything as string you will run into troubles...
    this will evaluate to the wrong result:

    (UseVars("speedattvolb") + UseVars("speedattspeedb")) ^ UseVars("speedattspeeda")

    this returns the correct value:

    (CLng(UseVars("speedattvolb")) + CLng(UseVars("speedattspeedb"))) ^ CLng(UseVars("speedattspeeda"))

    happy debugging...

  2. #2
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Toronto, Canada
    1-I am not sure of the proper conversion value.. you're probably right... I'm hoping that's only for the GPS Attenuation ?

    2-This was done on purpose... at least on VB6 SP6 the conversion is automatically done for you without needing the CLNGs I thought. Or at least, I didn't run into trouble because of it.
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  3. #3
    Constant Bitrate
    Join Date
    Mar 2006
    1) i think its the only occurence...

    2) yes, there is a conversion, cause you couldnt calculate something with strings, but the implicit conversion is sometimes wrong. This results in "random" like errors is not easy to find - just try my example...

Similar Threads

  1. 1.6 Bugs (sorry)
    By GReeToZ in forum Centrafuse
    Replies: 14
    Last Post: 03-06-2006, 11:08 PM
  2. Centrafuse 1.3 Bugs
    By rickster in forum CF Bug Reports
    Replies: 330
    Last Post: 07-26-2005, 08:51 PM
  3. Replies: 0
    Last Post: 06-14-2005, 11:46 PM
  4. Updated Bugs and Requests thread
    By GReeToZ in forum Centrafuse
    Replies: 8
    Last Post: 03-02-2005, 02:28 AM
  5. [OFFICIAL THREAD] NMC 0.7 alpha.1 bugs
    By netsuo in forum NeoCar Media Center
    Replies: 46
    Last Post: 11-09-2004, 06:02 PM


Posting Permissions

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