Jim Rogers

Lives in Baton Rouge, LA, with two dogs, one cat, and one lovely wife. I'm a lead developer for GCR Incorporated.

Katrin and Jim

Month List

Bug Fix

by Jim Feb 03, 2007 7:33 AM

Here's a bug fix for the Battery Information gadget. It doesn't refresh its display on reboot, so it opens up blank.

Go to the folder C:\Users\[your login]\AppData\Local\Microsoft\Windows Sidebar\Gadgets\Battery.Gadget\Include.
Right click to edit (not open) the battery.js file
Change the Initialize() function so that it reads like this:

function Initialize()
{
    // Apply appropriate style at reboot
    if (System.Gadget.docked)
        AppyDockedStyle();
    else 
        ApplyUndockedStyle();
    System.Machine.PowerStatus.powerLineStatusChanged = Refresh;
    ...

Note that the 'Appy' mispelling is intentional; that is the actual function name.

Tags:

Code

Windows Error Reporting

by Jim Feb 01, 2007 4:27 PM

If there's one program in Vista that should be absolutely bomb-proof and bug-free, it's Windows Error Reporting. This catches unhandled exceptions from any other program and sends an error report to Microsoft. But I get this:

Empty Client Area

WerFault.exe is locked up; I have to kill the process to get rid of the window.

I suspect IE7 and/or Windows Media Player - an error report would help me figure it out...

Tags:

Code