Hi,
I am using XPMenu Bar and MdiMainFrameBarManager and MDIChildFrameBarManager in my application to manage the menu of both Mdi parent and child forms. While I try to close my application by closing the child windows one by one, I get the following error:
System.NullReferenceException: A BarItem (Text: &File) that is not part of a BarManager is found in the menus or toolbars. Make sure to add
the BarItem to a BarManager before adding it to the menus or toolbars.
at Syncfusion.Windows.Forms.Tools.XPMenus.MainFrameBarManager.RefreshContainer(IBarItemContainer container)
at Syncfusion.Windows.Forms.Tools.XPMenus.MainFrameBarManager.UpdateBarsInManager(BarManager manager)
at Syncfusion.Windows.Forms.Tools.XPMenus.MainFrameBarManager.UpdateBars()
at Syncfusion.Windows.Forms.Tools.XPMenus.MainFrameBarManager.OnFormActivated(Form form)
at Syncfusion.Windows.Forms.Tools.XPMenus.MainFrameBarManager.set_LatestActiveMdiChild(Form value)
at Syncfusion.Windows.Forms.Tools.XPMenus.MainFrameBarManager.MdiChildActivated(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnMdiChildActivate(EventArgs e)
at System.Windows.Forms.Form.ActivateMdiChildInternal(Form form)
at System.Windows.Forms.Form.WmMdiActivate(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I am afraid that this error is not consistent. I am using Syncfusion 4.3.0.30 and VS2005. The trace is attached herewith.
Can anyone help me in this!
Thanks in advance,
Nevin
Trace1.zip