Print Page | Close Window

BuddyControl and UserControl_Terminate event

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: General Discussion
Forum Description: Topics Related to Active-X COM Development in General
URL: http://forum.codejock.com/forum_posts.asp?TID=22399
Printed Date: 25 April 2024 at 12:40am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: BuddyControl and UserControl_Terminate event
Posted By: Dett
Subject: BuddyControl and UserControl_Terminate event
Date Posted: 03 September 2014 at 9:29am
Using a PushButton with associate BuddyControl in a UserControl the UserControl_Terminate event is only triggered when the program is unloaded. Removing the association to the BuddyControl, the terminate event is triggered when the form is unloaded - as expected.

A negative side effect is that the GDI resources are not released, so that after some time of work the windows limit for GDI handles (10,000) is reached. In regfree-com the program exits with error 373 (Failed to load control ...) or the program freezes or crashes.

Here is a short example project to demonstrate the effect (you need the taskmanager with the addional column "gdi objects")

uploads/4837/Test_GDI_Leak.zip" rel="nofollow -




Replies:
Posted By: mcmastl
Date Posted: 20 April 2015 at 4:51pm
Thank you for bringing this to our attention, we have informed our development team and we will be looking into the issue.  If the matter has been resolved please let us know.  

-------------
Luke McMasters, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: ScottW
Date Posted: 16 September 2018 at 10:22pm
Was this ever fixed? I seem to be running into this with an UpDown control connected to a FlatEdit Control. It only causes this problem when it appears on a UserControl



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