Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Toolkit Pro clients does not  release GDI Objects
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Toolkit Pro clients does not release GDI Objects

 Post Reply Post Reply
Author
Message
eksubbot View Drop Down
Newbie
Newbie


Joined: 23 April 2009
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote eksubbot Quote  Post ReplyReply Direct Link To This Post Topic: Toolkit Pro clients does not release GDI Objects
    Posted: 01 December 2009 at 6:39am

Hello all,
 

We support application which uses Xtreme ToolkitPro v11.1.3. We found the following issue- our application does not  release GDI Objects.  After detailed problem investigation it was  determined that this is Xtreme ToolkitPro issue.

Example:

Out application creates popup control. In Task Manager I see that the count  of GDI object is increased by 21 objects. Then I close popup window and the count  of GDI object is decreased by 10 object. So, 11 GDI objects are lost.


After that, I started PopupControl.exe application from Xtreme ToolkitPro samples, provided with installation packet. The Codejock Messanger Popup Sample application started. When I press Show button, the count  of GDI object is increased by 18 objects, then popup window is closed,  the count of GDI objects is decreased by 9 objects only.


So this issue is caused by Xtreme ToolkitPro.
 

Does anybody know how this issue may be fixed? May be this issue is fixed in the latest versions of Xtreme ToolkitPro?

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 02 December 2009 at 4:42am
Hello,
 
yes, its problem of this sample. LoadImage create new GDI Handle and sample code have to release it.
 
to cleanup it instead LoadImage call
pPopup->GetImageManager()->SetIcon(IDI_RESOURCE, pItemIcon->GetIconIndex());
 
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
eksubbot View Drop Down
Newbie
Newbie


Joined: 23 April 2009
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote eksubbot Quote  Post ReplyReply Direct Link To This Post Posted: 03 December 2009 at 4:25am
Hello Oleg,
 
Thanks, it helped
 
 
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.027 seconds.