Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - GDI leak in CXTPPopupControl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

GDI leak in CXTPPopupControl

 Post Reply Post Reply
Author
Message
AlxB View Drop Down
Newbie
Newbie
Avatar

Joined: 12 February 2010
Location: Ukraine
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote AlxB Quote  Post ReplyReply Direct Link To This Post Topic: GDI leak in CXTPPopupControl
    Posted: 12 February 2010 at 3:50am
Hi!
When I used pop-up control I've noticed a GDI resource leak in the function HRGN CXTPPopupControl::BitmapToRegion(CXTPImageManagerIcon* pIcon) file XTPPopupControl.cpp.

A handle that is created as:
HBITMAP hbm32 = CXTPImageManager::Create32BPPDIBSection(dcMemDC, nWidth, nHeight, &lpBits);
will be never freed later.

In my code I simply change "raw" HBITMAP into CBitmap class to solve this problem. I use version 12 and AFAIK it is not corrected in 13 version as well.

Thanks.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.145 seconds.