Print Page | Close Window

DockingPane + CommandBars not terminating

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=1474
Printed Date: 15 June 2024 at 6:44pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: DockingPane + CommandBars not terminating
Posted By: Spyder
Subject: DockingPane + CommandBars not terminating
Date Posted: 29 November 2004 at 7:40pm
Is there any way to force DockingPane to release the reference it has to a CommandBars object?

The problem is that a VB6 ActiveX control terminates differently to a normal application, so if the control is not shutdown cleanly you get severe memory leaks. It also closes forms differently so DockingPane never seems to detect it is time to shut down.

I just spent a day bashing my head against the wall; as soon as I put the "SetCommandBars" line in my application it no longer shut down cleanly. But I couldn't get it to happen in a separate test app.

I finally worked it out - if you initialise CommandBars before DockingPane has a reference to it then bad things happen and it never terminates. I've attached a sample to show what I mean:
uploads/Spyder/2004-11-29_193325_never_terminates.zip - 2004-11-29_193325_never_terminates.zip

Load the project into VB, hit run and then load the HTML file in IE (ignoring the security warning). Once you get it loaded, try closing it - notice the "terminated" output does not appear unless you move the SetCommandBars line.



Replies:
Posted By: Oleg
Date Posted: 30 November 2004 at 3:05am

Thank you for problem you found. The problem you reported has been corrected and will be included in the next product release.

 



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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