Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > General Discussion
  New Posts New Posts RSS Feed - BuddyControl and UserControl_Terminate event
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

BuddyControl and UserControl_Terminate event

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


Joined: 28 December 2008
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dett Quote  Post ReplyReply Direct Link To This Post Topic: BuddyControl and UserControl_Terminate event
    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

Product: Xtreme SuitePro (ActiveX) version 16.3.1
Language: VB6 SP6
Platform: Windows 7 Enterprise 64-Bit
Back to Top
mcmastl View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 April 2015
Status: Offline
Points: 79
Post Options Post Options   Thanks (0) Thanks(0)   Quote mcmastl Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
ScottW View Drop Down
Groupie
Groupie


Joined: 02 August 2005
Status: Offline
Points: 82
Post Options Post Options   Thanks (0) Thanks(0)   Quote ScottW Quote  Post ReplyReply Direct Link To This Post 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
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.266 seconds.