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

  • The Ballad of Mad Cap'n Tom

    Randomly bouncing around Youtube a while back I stumbled upon the Ballad of Map Cap'n Tom... Watching it was a mix of hilarious and oddly…

  • Psalm 46

    Housegroup was strange this evening - that's saying something given how bonkers our housegroup normally is! We ended up discussing no end of random…

  • Windmill, windmill, for the land...

    The voteamabob once gain threw up the traditional pasta night games of Ticket to Ride and Dominion, so jonners99_uk did a bit more…

  • 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