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
Dett View Drop Down

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")


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

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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

This page was generated in 0.094 seconds.