Hello Team ,
We are facing object reference error while calling treeview.EndUpdate method following is the stack trace for it , this issue doesn't occurs always , we are using threading in our code.
Message: Object reference not set to an instance of an object.
Stack Trace: at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive) at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive) at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive) at Infragistics.Win.UIElement.VerifyChildElements(Boolean recursive) at Infragistics.Win.UIElement.VerifyChildElements() at Infragistics.Win.UltraWinTree.UltraTreeUIElement.PositionChildElements() at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive) at Infragistics.Win.UIElement.VerifyChildElements(Boolean recursive) at Infragistics.Win.UIElement.VerifyChildElements() at Infragistics.Win.UltraWinTree.UltraTreeNode.BringIntoViewHelper(Boolean includeChildNodes, Boolean includeHorizontal, Boolean includeVertical, Boolean leftOnly, Boolean isVerifying) at Infragistics.Win.UltraWinTree.UltraTree.VerifyPendingBringIntoViewInfo() at Infragistics.Win.UltraWinTree.UltraTree.EndUpdate(Boolean invalidate) at Infragistics.Win.UltraControlBase.EndUpdate()
We are using Infragistics Version 15.2
Thanks
Prashant Chavan
Hi Prashant,
Threading and databinding really don't mix well. Since you are not in control of the communication between the control, the binding manager, and the data, it's impossible to properly marshal the communication across threads.
If your background thread does anything at all the your tree or it's DataSource at any time, even so much as examining the data, this could cause the exception you are seeing.
Can you reproduce the exception in a small sample project that you could post here so we could run and debug it?