Print Page | Close Window

Exception on shutdown in mdi app

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=2239
Printed Date: 30 June 2024 at 12:36pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Exception on shutdown in mdi app
Posted By: rkosbab
Subject: Exception on shutdown in mdi app
Date 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



Replies:
Posted By: rkosbab
Date 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


Posted By: Flex
Date 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...



Posted By: rkosbab
Date Posted: 26 May 2005 at 11:21am
I commented out the 2003 visualstyle I had but no luck.

-------------
Ross Kosbab
C# calling ActiveX



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