Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - Exception on shutdown in mdi app
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Exception on shutdown in mdi app

 Post Reply Post Reply
Author
Message Reverse Sort Order
rkosbab View Drop Down
Newbie
Newbie
Avatar

Joined: 17 May 2005
Location: United States
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote rkosbab Quote  Post ReplyReply Direct Link To This Post Topic: Exception on shutdown in mdi app
    Posted: 26 May 2005 at 11:21am
I commented out the 2003 visualstyle I had but no luck.
Ross Kosbab
C# calling ActiveX
Back to Top
Flex View Drop Down
Newbie
Newbie


Joined: 20 May 2005
Location: United Kingdom
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote Flex Quote  Post ReplyReply Direct Link To This Post Posted: 25 May 2005 at 7:27am

Are you enabling visualstyles in the application?

Try commenting out the line where you do if you are...

Back to Top
rkosbab View Drop Down
Newbie
Newbie
Avatar

Joined: 17 May 2005
Location: United States
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote rkosbab Quote  Post ReplyReply Direct Link To This Post Posted: 24 May 2005 at 8:30am
I've narrowed the issue down: My app contains Syncfusion Menu bars, if I exit the app via the Syncfusion menu-bar File->exit the app shut's down correctly. If I close the app via the 'X' button in the top-right frame I recieve the exception. However I don't know of any workarounds or fixes(aside from buying CodeJock's commandbars and redesigning all my existing Syncfusion menus).
Ross Kosbab
C# calling ActiveX
Back to Top
rkosbab View Drop Down
Newbie
Newbie
Avatar

Joined: 17 May 2005
Location: United States
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote rkosbab Quote  Post ReplyReply Direct Link To This Post Posted: 17 May 2005 at 9:52am

I'm using the dockingpane ActiveX control in a C# .NET app. My main form is an MDIContainer so in order to create panes I have to include the following code:

foreach (Control ctrl in this.Controls)

{

if (ctrl is MdiClient)

{

DockingPaneManager.SetMDIClient(ctrl.Handle.ToInt32());

}

}

Does anyone know what this code does? And why I receive "NullReferenceException: Object reference not set to an instance of an object" at shutdown when I include it?

I'm using the new dockingpane activeX control version 9.7. Any help/ideas is appreciated!

Ross Kosbab
C# calling ActiveX
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.094 seconds.