Exceptions "eaten up" by DockingPane |
Post Reply |
Author | |
blazej
Groupie Joined: 09 February 2005 Location: Canada Status: Offline Points: 53 |
Post Options
Thanks(0)
Posted: 08 June 2005 at 1:39pm |
Hi,
Normally, when a C# application throws an exception, the execution of the program is immediately stopped and a message box is displayed with details of the exception. That's the desired behavior. An application that uses the ActiveX DockingPane behaves differently: in some cases, the exception is "eaten up" somewhere. The program keeps running, no message box appears. Of course, the program is not stable anymore so this is not a good situation. I suspect that this behavior is related to the Docking Pane. It may be typical of ActiveX controls in .NET environment, I don't know. Also, it happens only sometimes - in many cases the information about the exception is displayed and the program ends. I'm not sure if it is related to the type of exception thrownor to the context. Can someone more knowledgable in the area of DockingPane and/or ActiveX components comment on this? Thanks in advance Michal Blazejczyk |
|
rkosbab
Newbie Joined: 17 May 2005 Location: United States Status: Offline Points: 4 |
Post Options
Thanks(0)
|
Hi Michal, I have a C# app that calls the ActiveX DockingPane control. It's generally pretty stable. However I experience intermittent exceptions which just flash on the screen on shutdown. I've narrowed it down to this cause: 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/replacing all my existing Syncfusion menus with CodeJock's). Maybe CodeJock will come out with a .NET flavor of their dockingPane? |
|
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 |