Author Topic: Bugs caused by the weather ?  (Read 422 times)

J-G

  • Hero Member
  • *****
  • Posts: 1287
Bugs caused by the weather ?
« on: August 10, 2026, 02:53:30 pm »
A little 'tongue in cheek' but today I came across a bug in a program that has been running for over 9 years - caused by the current climate.

I keep a check on my energy use (having Solar Panels) by taking readings every day and it's enabled be to get reduced charges - and even refunds (and 'gifts'). The data includes Gas & Electric readings as well as the solar panel output but these are on a weekly basis.

When entering todays readings, the program wouldn't [Save] telling me that the Gas data was 'invalid' ???   Of course I check to be sure that I haven't made a silly error by mis-typing and a new reading is smaller than the previous.  The figures were all correct so I had to open the project to see why it was 'failing' the validity check.

9 years ago I didn't concider that Gas usage week on week would ever be so small that the two figures (this week/last week) would be equal  -  ie. less than 1 unit used - I only record whole units as that is what the supplier wants  - so  This Week > Last Week   is False (invalid) when they are equal  :-[ :o

A simple matter to fix ( >= ) but a head-scratcher initially.



FPC 3.0.0 - Lazarus 1.6 &
FPC 3.2.2  - Lazarus 2.2.0 
Win 7 Ult 64

CM630

  • Hero Member
  • *****
  • Posts: 1788
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Bugs caused by the weather ?
« Reply #1 on: August 10, 2026, 10:48:58 pm »
A few years ago  (maybe more than 9) for some reason Russia stopped delivering natural gas for a couple of weeks, so gas consumption everywhere in the country was zero.
Лазар 4,8 32 bit (sometimes 64 bit); FPC3,2,2

J-G

  • Hero Member
  • *****
  • Posts: 1287
Re: Bugs caused by the weather ?
« Reply #2 on: August 10, 2026, 11:10:27 pm »
A few years ago  (maybe more than 9) for some reason Russia stopped delivering natural gas for a couple of weeks, so gas consumption everywhere in the country was zero.
2006 , 2009, 2014 & 2022 apparently - due to 'Pricing' or 'Political' disputes.

I'll wager that 'no supply' didn't mean 'no charge' though - well it wouldn't in the UK - the Energy companles would still want the 'Standing' charge!

My point was/is of course that there are many "Gotcha's" in programming which often take some time to show themselves.
FPC 3.0.0 - Lazarus 1.6 &
FPC 3.2.2  - Lazarus 2.2.0 
Win 7 Ult 64

Lauriet

  • New Member
  • *
  • Posts: 48
Re: Bugs caused by the weather ?
« Reply #3 on: August 11, 2026, 03:08:53 am »
A few years ago I had a program that failed when there were sun spots!
Go figure!

dsiders

  • Hero Member
  • *****
  • Posts: 1694
Re: Bugs caused by the weather ?
« Reply #4 on: August 11, 2026, 04:40:59 am »
A few years ago I had a program that failed when there were sun spots!
Go figure!

Let me guess... Novell Netware using ArcNet between buildings? :)

 

TinyPortal © 2005-2018