Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Application hangs while setting splitter.splitPosition

$
0
0

The hung is occurring while maximizing the size of PanelAnnotationControl (PanelAnnotationControl.AdjustSize() – See StackTrace). I don’t see any problem in this call but setting the SplitPosition ofTWSplitter, calls Application.DoEvents which continually processes window messages for application, raising events as necessary.  Application.DoEvents processes all the window messages in the queue until it has run out of messages, then returns. In our case control is never returned and causes the application hang.

The hung will get fixed if we ignore this call on resize event but has side effects. Also the issue isonly reproducible in OS2003 64Bit and I am not able to reproduce this in any other operating system. So far I tried windows XP, Windows 7, Server 2008 and R2;with same webserver. Also I installed fresh OS2003 Standard(64Bit) and guess what, I am not able to reproduce the issue. So that means that I havetwo OS2003 with same version but reproducible only in one. This also give an indication that there is some bug in OS2003 or some other component is causing the problem. We still need to investigate this area.

 

 

Stack Trace

036678a4 7d949229 [NDirectMethodFrameStandalone: 036678a4] System.Windows.Forms.UnsafeNativeMethods.PeekMessage(MSG ByRef, System.Runtime.InteropServices.HandleRef, Int32, Int32, Int32)

036678c4 0be2e860 System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32, Int32, Int32)

036678c8 0be2e016 [InlinedCallFrame: 036678c8]

036679ac 0be2dd6a System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)

036679d8 11c85af3 System.Windows.Forms.Splitter.set_SplitPosition(Int32)

03667a04 11c859fe Allscripts.TouchWorks.Common.Windows.ClinicalEditorPanes.PanelAnnotationControl.AdjustSize()

 

03667a64 11c8590c Allscripts.TouchWorks.Common.Windows.ClinicalEditorPanes.PanelAnnotationControl.OnResize(System.EventArgs)

03667a70 0ac23789 System.Windows.Forms.Control.OnSizeChanged(System.EventArgs)

03667a80 11c858dd Allscripts.TouchWorks.Common.Windows.ClinicalEditorPanes.PanelAnnotationControl.OnSizeChanged(System.EventArgs)

03667a8c 0a9cbbaf System.Windows.Forms.Control.UpdateBounds(Int32, Int32, Int32, Int32, Int32, Int32)

03667ab4 0a9cba09 System.Windows.Forms.Control.UpdateBounds()

03667ae4 0c70b74d System.Windows.Forms.Control.WmWindowPosChanged(System.Windows.Forms.Message ByRef)

03667af8 0a9cb3dc System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)

 



Viewing all articles
Browse latest Browse all 31927

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>