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
670
Crashing in new win forms 2009 hotfix build 2012
posted

We have made zero code changes between win forms 2009.1000 and the hot fix 2009.2012 versions but now on doing this line of code

ultraTree1->ActiveNode=keyNode;

our program crashs as in the stack dump at the end of this post

Is this a known problem and will be fixed in the next hot fix ?
Or is there a work round etc?
we need the2009.2012 hot fix for other charting reasons so we cant go back
Any fast help appreciated we are mid beta release here :(


System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: index
   at System.Collections.ArrayList.get_Item(Int32 index)
   at Infragistics.Win.UltraWinTree.NodeClientAreaUIElement.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.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)
   at Infragistics.Win.UltraWinTree.UltraTreeNode.BringIntoViewHelper(Boolean includeChildNodes, Boolean includeHorizontal)
   at Infragistics.Win.UltraWinTree.UltraTree.SetActiveNode(UltraTreeNode node, Boolean bringIntoView, Boolean adjustHorizontalPosition)
   at Infragistics.Win.UltraWinTree.UltraTree.set_ActiveNode(UltraTreeNode value)
   at Program.Main.ultraTree1_Build(Int32 mode)
   at Program.Main.Treeview(Int32 type)

Thanks :¬)

Parents
No Data
Reply
  • 459
    posted

    Hmm, we are getting the same error too.  Same circumstances with no code changes between the orignal release and the hotfix.

    It seems to happen when we are setting the ActiveNode to something other than nothing (in our case we have just added a new node).

    This only is happening if there exists at least one node in the TreeView before attempting to set the ActiveNode.

Children