Hi, In our application we are using DevExpress XtraNavBar. And a weird behaviour that is noticed is, while disposing, it actually creates new controls. Please see below a call stack. Is this expected?
> Newmarket.Application.Delphi.UserInterface.Windows.HomeModule.dll!Newmarket.Application.Delphi.UserInterface.Windows.HomeModule.Calendar.DateNavigatorView.OnLoad(System.EventArgs e = {System.EventArgs}) Line 62 C#
System.Windows.Forms.dll!System.Windows.Forms.UserControl.OnCreateControl() + 0x24 bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.CreateControl(bool fIgnoreVisible) + 0x172 bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.CreateControl(bool fIgnoreVisible = false) + 0x12b bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.CreateControl(bool fIgnoreVisible = false) + 0x12b bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.CreateControl(bool fIgnoreVisible = false) + 0x12b bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.CreateControl(bool fIgnoreVisible = false) + 0x12b bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.CreateControl() + 0x1b bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.WmShowWindow(ref System.Windows.Forms.Message m) + 0x8e bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.WndProc(ref System.Windows.Forms.Message m) + 0x6ed bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.OnMessage(ref System.Windows.Forms.Message m) + 0xd bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.WndProc(ref System.Windows.Forms.Message m) + 0x36 bytes
System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.Callback(System.IntPtr hWnd, int msg = 24, System.IntPtr wparam, System.IntPtr lparam) + 0x5a bytes
[Native to Managed Transition]
user32.dll!7e418734()
[Frames below may be incorrect and/or missing, no symbols loaded for user32.dll]
user32.dll!7e418816()
user32.dll!7e41b4c0()
user32.dll!7e41b50c()
ntdll.dll!7c90eae3()
user32.dll!7e41fe13()
user32.dll!7e41fdd9()
ntdll.dll!7c926a44()
ntdll.dll!7c926abe()
ntdll.dll!7c96e0d4()
System.Windows.Forms.ni.dll!7b06c6f3()
ntdll.dll!7c910833()
user32.dll!7e41fecc()
System.Windows.Forms.ni.dll!7b665a73()
user32.dll!7e41fc58()
[Managed to Native Transition]
System.Windows.Forms.dll!System.Windows.Forms.UnsafeNativeMethods.CreateWindowEx(int dwExStyle, string lpszClassName, string lpszWindowName, int style, int x, int y, int width, int height, System.Runtime.InteropServices.HandleRef hWndParent, System.Runtime.InteropServices.HandleRef hMenu, System.Runtime.InteropServices.HandleRef hInst, object pvParam) + 0x45 bytes
System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.CreateHandle(System.Windows.Forms.CreateParams cp) + 0x24f bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.CreateHandle() + 0x13a bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.Handle.get() + 0x5d bytes
System.Windows.Forms.dll!System.Windows.Forms.ContainerControl.FocusActiveControlInternal() + 0xe3 bytes
System.Windows.Forms.dll!System.Windows.Forms.ContainerControl.AfterControlRemoved(System.Windows.Forms.Control control = {DevExpress.XtraNavBar.NavBarGroupControlContainer}, System.Windows.Forms.Control oldParent = {DevExpress.XtraNavBar.NavBarGroupControlContainerWrapper}) + 0x99 bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.ControlCollection.Remove(System.Windows.Forms.Control value) + 0xc2 bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.Dispose(bool disposing = true) + 0x205 bytes
DevExpress.XtraNavBar.v8.2.dll!DevExpress.XtraNavBar.NavBarGroupControlContainer.Dispose(bool disposing = true) + 0x5c bytes
System.dll!System.ComponentModel.Component.Dispose() + 0xf bytes
DevExpress.XtraNavBar.v8.2.dll!DevExpress.XtraNavBar.NavBarGroup.DestroyContainer() + 0x50 bytes
DevExpress.XtraNavBar.v8.2.dll!DevExpress.XtraNavBar.NavBarGroup.Dispose(bool disposing = true) + 0x27 bytes
Infrastructure.Layout.dll!Newmarket.EnterpriseLibrary.UserInterface.Windows.Infrastructure.Layout.NavigationPane.Dispose(bool disposing = true) Line 20 + 0x10 bytes C#
System.dll!System.ComponentModel.Component.Dispose() + 0xf bytes
System.dll!System.ComponentModel.Container.Dispose(bool disposing) + 0x5d bytes
System.dll!System.ComponentModel.Container.Dispose() + 0xf bytes
Newmarket.Application.Delphi.UserInterface.Windows.Infrastructure.Layout.dll!Newmarket.Application.Delphi.UserInterface.Windows.Infrastructure.Layout.DelphiLayoutView.Dispose(bool disposing = true) Line 329 + 0xc bytes C#