Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - DockingPane + CommandBars not terminating
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

DockingPane + CommandBars not terminating

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


Joined: 17 November 2004
Location: Australia
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote Spyder Quote  Post ReplyReply Direct Link To This Post Topic: DockingPane + CommandBars not terminating
    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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
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.109 seconds.