NullReferenceException during Form.OnClosed

Hi SF team,

Below is a stacktrace of the exception that I got during Form.OnClosed(e) event. If you were to ask me to reproduce it in a sample, I really doubt I can. Anyway, I hope that you can point out the problem using the info. below:

Syncfusion.Tools.Windows: at Syncfusion.Windows.Forms.Tools.XPMenus.Bar.UpdateSeparatorIndices()

at Syncfusion.Windows.Forms.Tools.XPMenus.Bar.RemoveGroupAt(BarItem barItem)

at Syncfusion.Windows.Forms.Tools.XPMenus.Bar.RemoveItem(BarItem item)

at Syncfusion.Windows.Forms.Tools.XPMenus.MergedBar.RemoveItem(BarItem item)

at Syncfusion.Windows.Forms.Tools.XPMenus.BarManager.RemoveReferencesToBarItem(BarItem item)

at Syncfusion.Windows.Forms.Tools.XPMenus.MainFrameBarManager.RemoveReferencesToBarItem(BarItem item, String unregisteredTypeName)

at Syncfusion.Windows.Forms.Tools.XPMenus.MainFrameBarManager.RemoveReferencesToItemsInManager(BarManager manager, Type unregisteredType)

at Syncfusion.Windows.Forms.Tools.XPMenus.MainFrameBarManager.UnregisterMdiChildTypes(Type[] formTypes, Boolean bForceRedraw)

at Syncfusion.Windows.Forms.Tools.XPMenus.MainFrameBarManager.OnMdiChildRemoved(Form childForm, Boolean fromClose)

at Syncfusion.Windows.Forms.Tools.XPMenus.MainFrameBarManager.OnFormClosed(Form form)

at Syncfusion.Windows.Forms.Tools.XPMenus.BarManager.FormClosed(Object sender, EventArgs e)

at System.Windows.Forms.Form.OnClosed(EventArgs e)

2 Replies

LK Leow Kah Man July 20, 2006 01:00 AM UTC

BTW, it is found in Syncfusion 4.2.0.37

We are using Syncfusion menus, toolbars, docking manager, treeviewadv and many more.


J. J.Nagarajan Syncfusion Team July 20, 2006 04:37 PM UTC

Hi Leow,

We regret for the inconvenience caused. I have tested this issue in v.4.2.0.37. I was not able to reproduce the issue here. Are you using RegisterMdiChildTypes() method of MainFrameBarManager?. If so, please try UnregisterMdiChildTypes() method in Form closing event.

Also, it would be helpful if you provide a sample which shows this issue.

Thanks for using Essential Tools.

Regards,
J.Nagaraj

Loader.
Up arrow icon