DockingPane + CommandBars not terminating |
Post Reply |
Author | |
Spyder
Newbie Joined: 17 November 2004 Location: Australia Status: Offline Points: 29 |
Post Options
Thanks(0)
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: 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. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |