JayakumarG


My application opens forms in tabs i.e one main form and other forms loaded in the tabs it works perfectly fine but it hangs frequently when kept idle for some time and try to do the same operation ( i.e opening a from in the tab)

Only significant operation that we are doing in the background during idle time was striping of the application process working set using a timer.

Below is the stack trace of the main thread..... also every time it hangs I get the same stack trace...

Can anyone throw some light on this issue..

> system.windows.forms.dll!System.Windows.Forms.Control.SetVisibleCore(bool value) + 0x1f7 bytes
system.windows.forms.dll!System.Windows.Forms.Control.set_Visible(bool value) + 0xe bytes
system.windows.forms.dll!System.Windows.Forms.Control.Hide() + 0x8 bytes
magiclocallibrary.dll!Crownwood.Magic.Controls.TabControl.AddTabPage(Crownwood.Magic.Controls.TabPage page) + 0x2bf bytes
magiclocallibrary.dll!Crownwood.Magic.Controls.TabControl.OnInsertedPage(int index, System.Object value) + 0x5e bytes
magiclocallibrary.dll!Crownwood.Magic.Collections.CollectionWithEvents.OnInsertComplete(int index, System.Object value) + 0x1a bytes
mscorlib.dll!System.Collections.CollectionBase.System.Collections.IList.Add(System.Object value) + 0xc5 bytes
magiclocallibrary.dll!Crownwood.Magic.Collections.TabPageCollection.Add(Crownwood.Magic.Controls.TabPage value) + 0x25 bytes
myapplication.exe!Myapplication.frmLanding.OpenFormTab(System.Windows.Forms.Form f_frmFrom, string f_strTabName, bool f_boolIsAllwaysOpen) + 0xd4 bytes
myapplication.exe!Myapplication.frmLanding.OpenCrewInfo() + 0xd3 bytes
myapplication.exe!Myapplication.frmLanding.crewSearch_OneViewClicked(System.Object sender, System.EventArgs e) + 0x8 bytes
myapplication.exe!Myapplication.BasicCrewSearchControl.btnOneView_Click(System.Object sender, System.EventArgs e) + 0x2a bytes
system.windows.forms.dll!System.Windows.Forms.Control.OnClick(System.EventArgs e) + 0x54 bytes
system.windows.forms.dll!System.Windows.Forms.Button.OnClick(System.EventArgs e) + 0x2b bytes
system.windows.forms.dll!System.Windows.Forms.Button.OnMouseUp(System.Windows.Forms.MouseEventArgs mevent) + 0xd6 bytes
system.windows.forms.dll!System.Windows.Forms.Control.WmMouseUp(System.Windows.Forms.Message m, System.Windows.Forms.MouseButtons button, int clicks) + 0x1c3 bytes
system.windows.forms.dll!System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message m) + 0x468 bytes
system.windows.forms.dll!System.Windows.Forms.ButtonBase.WndProc(System.Windows.Forms.Message m) + 0xdb bytes
system.windows.forms.dll!System.Windows.Forms.Button.WndProc(System.Windows.Forms.Message m) + 0x5d bytes
system.windows.forms.dll!ControlNativeWindow.OnMessage(System.Windows.Forms.Message m) + 0xb bytes
system.windows.forms.dll!ControlNativeWindow.WndProc(System.Windows.Forms.Message m) + 0xbc bytes
system.windows.forms.dll!System.Windows.Forms.NativeWindow.Callback(int hWnd, int msg, int wparam, int lparam) + 0x30 bytes
system.windows.forms.dll!System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(int dwComponentID, int reason, int pvLoopData) + 0x382 bytes
system.windows.forms.dll!ThreadContext.RunMessageLoopInner(int reason, System.Windows.Forms.ApplicationContext context) + 0x15f bytes
system.windows.forms.dll!ThreadContext.RunMessageLoop(int reason, System.Windows.Forms.ApplicationContext context) + 0x45 bytes
system.windows.forms.dll!System.Windows.Forms.Application.Run(System.Windows.Forms.Form mainForm) + 0x34 bytes
myapplication.exe!Myapplication.modMain.StartUp(System.Object sender, Myapplication.StartUpEventArgs event_args) + 0x1cf bytes
myapplication.exe!Myapplication.clsSingleInstanceHandler.RaiseStartUpEvent(Myapplication.StartUpEventArgs event_args) + 0x16 bytes
myapplication.exe!Myapplication.clsSingleInstanceHandler.Run(string[] args) + 0xa3 bytes
myapplication.exe!Myapplication.modMain.Main(string[] args) + 0x23a bytes



Re: Windows Forms General Application hangs in the Add Tab function call

nobugz

Judging from the call stack, this is a problem with the Crownwood Magic library. Contact Crownwood for support: support@dotnetmagic.com





Re: Windows Forms General Application hangs in the Add Tab function call

JayakumarG

Crownwood support is not helpful since they do not support the free version that we are using.
I got one more information when debugged thread with the name ImageAnimator (CLR/.net created thread) keeps running in parallel.
Once I kill this particular application comes back to normal state though it does not adds the form in the tab.