Print Page | Close Window

Toolkit Pro clients does not release GDI Objects

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=15753
Printed Date: 21 June 2025 at 10:10am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Toolkit Pro clients does not release GDI Objects
Posted By: eksubbot
Subject: Toolkit Pro clients does not release GDI Objects
Date 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?




Replies:
Posted By: Oleg
Date 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


Posted By: eksubbot
Date Posted: 03 December 2009 at 4:25am
Hello Oleg,
 
Thanks, it helped
 
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net