Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
175
Object Reference Error while calling treeview.EndUpdate()
posted

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

Parents
No Data
Reply
  • 469350
    Offline posted

    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?

Children
No Data