Thomas (boggyb) wrote,

  • Mood:
  • Music:

GDI leak begone!

I was getting fed up with running out of desktop heap all the time, so I decided to actually poke around and find out what was eating all the GDI handles. Several blind alleys were involved while I tried and failed to find a fancy way of doing it (that would pinpoint not just the process, but the library responsible), though I did trip across useful tool by Feng Yuan that tracks GDI usage by object.

I then decided to apply Common Sense, and guessed that an add-in for Internet Explorer would be leaking GDI handles. So, dump gdiobj.exe on the second screen (though I could have used Task Manager), start up IE on the first screen, and watch the numbers as I open and close new IE windows (via Ctrl+N). It appeared to be leaking 30 handles, so I tried disabling add-ons in turn (restarting IE each time) until this number got smaller. IE Developer Toolbar, no effect, Sun stuff, no effect, Messenger, no effect... Norton Confidential Browser Helper Object, handle leak becomes maybe 1 handle per three windows. Hah.

I then re-enabled the earlier add-ons to verify that none of them were also leaking, and for good measure then disabled a few more unneeded ones until the annoying 2-second delay on spawning a window became sub-second. Result: a browser that feels (and is) faster, and that can give me more windows before eating the desktop heap.

Edit: what a surprise, IE is *still* leaking handles. Any bets for what might be the culprit now?
Tags: computing

  • Today's maths fail

    Today's maths fail comes courtesy of the local Tesco's - can you spot it? Using the drained weight (dr.wt) of 165g, the correct values are:…

  • StreetPass Battle maths

    So one of the extra minigames in StreetPass Mii Plaza is StreetPass Battle, wherein you defeat a succession of opposing empires in a best-of-three…

  • Hashing algorithms ≠ unique identifiers, mmkay?

    I see talismancer has just managed to sneak in a post for yesterday. I can't really mock him for that one, seeing as I did the same…

  • Post a new comment


    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 1 comment