The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I upgraded my application from 3.2 to 7.1, When the main form call RegisterMdiChildTypes to register a child form, the application crashed with stack trace:
Error Message: A BarItem not part of a BarManager's Items list is encountered. Exception Type: System.ApplicationException at Syncfusion.Windows.Forms.Tools.XPMenus.BarItemID.FromBarItem(BarItem item) at Syncfusion.Windows.Forms.Tools.XPMenus.MergedBar.MergeBars(Bar[] bars) at Syncfusion.Windows.Forms.Tools.XPMenus.MergedBar..ctor(Bar[] barsToMerge, BarManager manager) at Syncfusion.Windows.Forms.Tools.XPMenus.MainFrameBarManager.InitMergedBars() at Syncfusion.Windows.Forms.Tools.XPMenus.MainFrameBarManager.RegisterMdiChildTypes(Type[] formTypes, Form[] forms) at Syncfusion.Windows.Forms.Tools.XPMenus.MainFrameBarManager.RegisterMdiChildTypes(Type[] formTypes)
I figured out because in the main form, I remove references to some bar items (mainFrameBarManager.RemoveReferencesToBarItem) is the cause of the problem. My question is what I need to do in the child form or the main form to fix the problem, I cannot find what bar items in the child form that caused the merged problem, any hint to find them?
ADAdministrator Syncfusion Team June 24, 2009 09:13 AM UTC
Hi Henry,
Sorry for the delayed response.
Can you please try reproducing the issue from the shipped sample located below or send us a sample illustrating the issue that would help us to sort out the issue?
Thanks for the response, I was able to fix the problem. When We use RemoveReferencesToBarItem method on both ParentBarItem and BarItem, we get the exception. This exception is not thrown in 3.2, but in 7.1.
Henry.
ADAdministrator Syncfusion Team July 7, 2009 09:57 AM UTC
Hi Henry,
We glad to hear that your issue has been resolved. Please let us know if you have any further issues.