Print Page | Close Window

Possible GDI font handle leak?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=23058
Printed Date: 25 April 2024 at 9:56am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Possible GDI font handle leak?
Posted By: metallica787
Subject: Possible GDI font handle leak?
Date Posted: 24 June 2016 at 5:14am
We are using Xtreme SuitePro ActiveX Controls v16.2.3 in our application and noticed our app is consuming lots of GDI-handles (> 6000). Most of them are font handles.

I created two VB6 test projects, which both add 500 Labels onto a form.
Project 1 uses Codejock.Labels, project 2 VB.Labels.



As you can see, project 1 uses 900 font handles whereas project 2 uses only 4.
Is this normal behaviour and if so, can we somehow share the font handles between controls?



Replies:
Posted By: flowfact
Date Posted: 01 December 2016 at 12:42pm
I can fully confirm that!!!
Does anybody have news on that?


Posted By: astoyan
Date Posted: 05 December 2016 at 11:00pm
That is a known issue and we're working on fixing it for the next update.

Regards,
  Alexander


Posted By: astoyan
Date Posted: 12 January 2017 at 8:07pm
The issue has been fixed for version 18.0, all GDI handles get cached now, which means that in some scenarios where lots of controls of the same class are use the reduction should be drastic.

Regards,
  Alexander



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