Exception on shutdown in mdi app |
Post Reply |
Author | |
rkosbab
Newbie Joined: 17 May 2005 Location: United States Status: Offline Points: 4 |
Post Options
Thanks(0)
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 |
|
rkosbab
Newbie Joined: 17 May 2005 Location: United States Status: Offline Points: 4 |
Post Options
Thanks(0)
|
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 |
|
Flex
Newbie Joined: 20 May 2005 Location: United Kingdom Status: Offline Points: 8 |
Post Options
Thanks(0)
|
Are you enabling visualstyles in the application? Try commenting out the line where you do if you are... |
|
rkosbab
Newbie Joined: 17 May 2005 Location: United States Status: Offline Points: 4 |
Post Options
Thanks(0)
|
I commented out the 2003 visualstyle I had but no luck.
|
|
Ross Kosbab
C# calling ActiveX |
|
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 |