Page 1 of 1

Startup Error

Posted: Sat 03 Sep 2016 3:16 pm
by oldakerw
During my first attempt at employment of Cumulus Mx I received the following error message, while I am sure I did something wrong I cannot find the error in the wiki:
Current culture: English (United States)
Serial: 6FA8D9B7F6ADDD2E642514BF626EB7E3
Cumulus MX v.3.0.0 build 3041
Unhandled Exception: System.DivideByZeroException: Attempted to divide by zero.
at CumulusMX.Cumulus.?() in C:\Users\steve\RiderProjects\CumulusMX\CumulusMX\Cumulus.cs:line 2916
at CumulusMX.Cumulus..ctor(Int32 HTTPport, Int32 WSport) in C:\Users\steve\RiderProjects\CumulusMX\CumulusMX\Cumulus.cs:line 1087
at ?.Main(String[] args) in C:\Users\steve\RiderProjects\CumulusMX\CumulusMX\Program.cs:line 101

I have version 3 (Mx) on my E: drive (Samsung SSD) in directory CumulusMx
Have attached my MXdiags and Cumulus.ini

Re: Startup Error

Posted: Sat 03 Sep 2016 3:36 pm
by steve
You have somehow managed to get zero values for the two web update intervals:

RealtimeInterval=0
UpdateInterval=0

The code doesn't currently check for these as it reads them in, as the code in the UI should prevent them being set to invalid values. This doesn't allow for the possibility that they have been set to invalid values by some other means!

If you change those to something greater than zero it should get you past the error.

Re: Startup Error

Posted: Sat 03 Sep 2016 5:44 pm
by oldakerw
Thank you sir.

I set them to 1 and then to 100 and got

Current culture: English (United States)
Serial: 6FA8D9B7F6ADDD2E642514BF626EB7E3
Cumulus MX v.3.0.0 build 3041

Unhandled Exception: System.DivideByZeroException: Attempted to divide by zero.
at CumulusMX.Cumulus.?() in C:\Users\steve\RiderProjects\CumulusMX\CumulusMX\Cumulus.cs:line 3017
at CumulusMX.Cumulus..ctor(Int32 HTTPport, Int32 WSport) in C:\Users\steve\RiderProjects\CumulusMX\CumulusMX\Cumulus.cs:line 1087
at ?.Main(String[] args) in C:\Users\steve\RiderProjects\CumulusMX\CumulusMX\Program.cs:line 101

Re: Startup Error

Posted: Sat 03 Sep 2016 6:43 pm
by steve
You have other intervals invalidly set to zero. Cumulus currently does the same with each of them when it reads them from Cumulus.ini, regardless of whether you are you using the particular facility.

[PWSweather]
ID=
Password=
Enabled=0
Interval=0
SendUV=0
SendSR=0
CatchUp=0

[WOW]
ID=
Password=
Enabled=0
Interval=0
SendUV=0
SendSR=0
CatchUp=0

[Weatherbug]
ID=
Number=
Password=
Enabled=0
Interval=0
SendUV=0
SendSR=0
CatchUp=0

I've added the necessary code to the next build to check for invalid values.

Re: Startup Error

Posted: Sat 03 Sep 2016 8:11 pm
by oldakerw
Steve,

Thank you so much, that did the trick and I am up and running now.

Bill