Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.

GDI handle leak in form menu bar?

It seems like these menu bar icons leak 1 gdi handle each whnever a form is opened. Has this happened to other people? This is OI 9.4

Comments

  • Interesting. I assume you used a resource monitor to catch these. I hadn't noticed, but then again, I don't know if any of us use menu icons. Not sure if Revelation will fix it since 9.x is out of support, but if not, maybe there's some WinAPI trickery you can do to release these handles. It'd be a fair bit of work, though.
  • We noticed it because users complained that their OIs were crashing. Their number of GDI handles was hitting 10k, from there we narrowed it down to the menu bar icons.

    Process Explorer tells you how many GDI handles are currently being used by a process. There is also a MS program called Performance Hud that breaks down GDI handles into several types.
    https://www.microsoft.com/en-us/download/100813

Sign In or Register to comment.