#181: Runtime error with weatherbug

rated by 0 users
This post has 5 Replies | 2 Followers

Top 10 Contributor
Posts 826
The Dragon Rider Posted: Thu, May 3 2007 7:10 PM

I downloaded and installed the latest version of the Weather Bug Basic Add-In library, and when I ran the example program, I got this error:

---------------------------
Phrogram Runtime Error
---------------------------
Runtime error on line 49 in file WeatherBugBasicExample.kpl:

    startIndex cannot be larger than length of string.
---------------------------

 

Line 49 is the line that says:

DataList.Add("Temprature: " + Wdata.Temperature + " " + Wdata.TemperatureUnits)

 

Does anyone know what the problem is?

 

Top 50 Contributor
Posts 31

It's been since last february that I last used the weatherbug interface.  I got your error message when I ran the weatherbug example phrogram on vista; but not when I run it on XP.  Unfortunately, my little vista netbook blue screened and wont start again today.  So, I wont be developing a work-around.  Back in February I posted a lament that even with XP, my weatherbug interface kept returning '99999' when data was requested by zip code.   Now, it works fine.  Another VISTA issue is accommodating the windows prompts to "allow" internet access from the PROGRAM executeable.  Logic needs to be added to work around this start up issue.  Otherwise, weatherbug seems to work just peachy now.

Top 10 Contributor
Posts 692
ZMan replied on Fri, Feb 12 2010 12:57 PM

Dragon rider - any idea if this ever got fixed?

Managed DirectX and XNA ? Check out http://www.thezbuffer.com
Top 10 Contributor
Posts 826

Still happens.

WeatherBugPro assembly version 1.1.2771.26966

Phrogram version 2.2.2906.16868

Top 50 Contributor
Posts 31
Today, February 13th, 2010; I tested the following weather bug KPL programs with: Windows XP version 5.1 ( build 2600, service patch 3, 091208-2036 ) PHROGRAM version 2.5.3169.17574 with "WeatherBug.WeatherBugClass 1.0.0.0 Phrogram.WeatherBugBasic.dll" BeaufortScale.KPL, WeatherBugBasicExample.KPL, WeatherDisplay.KPL, WeatherVan.KPL I used the zip code 60666 for Chicago's O'Hare airport. I did not include WeatherBugPro.dll in my system.
Top 50 Contributor
Posts 31
There seems to be a problem with having both WeatherBugBasic and WeatherBugPro add-ins available at the same time. After adding the WeatherBugProClass 'dll' and 'xml' files to the Phrogram install subdirectory. Loading WeatherBugBasicExample.kpl prompted the error: Runtime error on line 46 in file .....: startIndex cannot be larger than length of string. After removal of WeatherBugClass 'dll' and 'xml' files from the Phrogram subdirectory of: "C:/Program Files/The Phrogram Company" loading "WeatherBugBasicExample.kpl" generated the following 11 Errors: Type 'WeatherBugClass' has not been defined Could not resolve member reference Could not resolve member reference Could not resolve member reference Could not resolve member reference Could not resolve member reference Could not resolve member reference Could not resolve member reference Could not resolve member reference Could not resolve member reference Could not resolve member reference Changing the statement: "Define Wdata As WeatherBugClass" to "Define Wdata As WeatherBugProClass" eliminated these program load errors However, the behavior of the program was strange. The "WeatherBugProExample.kpl" operates, but the results were also strange. I have no trouble with the Weather Bug Basic dll and xml add-in files by themselves.
Page 1 of 1 (6 items) | RSS