We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

NullReferenceException during Form.OnClosed

Thread ID:





46755 Jul 20,2006 12:58 AM UTC Jul 20,2006 04:37 PM UTC WinForms 2
Tags: Tools
Leow Kah Man
Asked On July 20, 2006 12:58 AM UTC

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)

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

BTW, it is found in Syncfusion

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

J.Nagarajan [Syncfusion]
Replied On July 20, 2006 04:37 PM UTC

Hi Leow,

We regret for the inconvenience caused. I have tested this issue in v. 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.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon