tags:

views:

290

answers:

0

Hi,

I was writing an application to read the laptop battery charge using the GetSystemPowerStatus API. This API was called every second (from a timer control) and the value of bytBatteryLifePercent in the returned data-structure was passed to a progress-bar in order to display the battery charge.

The application was written in VB 2005 and was not run outside of the Visual Studio 2005 IDE. My OS is Windows Vista.

I noticed that after about a day's development and testing, while charging, the battery charge indicator would rise up very slowly to 79 or 80% (a lot slower than earlier), and then jump to 100% and say 'fully charged'. This happened both in my application and also in the battery indicator in Vista. Also when the application wasn't running or when when Visual Studio wasn't running, the Vista battery indicator would show the same symptoms, including after a reboot.

Any idea's on what I can do to fix this problem? - I have decided to ditch my application.

Many thanks, Patrick.