I have a User Control with a tree that has work flawless for two years. We just updated to the latest SR 2063 and when we start to scroll the control we get this explosion.
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.DrawHelper(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode, Boolean clipText, Boolean forceDrawAsFocused, Boolean preventAlphaBlendGraphics) at Infragistics.Win.UIElement.Draw(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode, Boolean forceDrawAsFocused, Boolean preventAlphaBlendGraphics) at Infragistics.Win.ControlUIElementBase.Draw(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode, Size elementSize, Boolean preventAlphaBlendGraphics) at Infragistics.Win.ControlUIElementBase.Draw(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode, Size elementSize) at Infragistics.Win.ControlUIElementBase.Draw(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode) at Infragistics.Win.UltraControlBase.OnPaint(PaintEventArgs pe) at Infragistics.Win.UltraWinTree.UltraTree.OnPaint(PaintEventArgs pe) at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
Hi Mike,
I can tell you that we have some code that pulls a list of user objects. We loop through the list and programmatically create nodes and add them to the tree. There might be 4000+ nodes being added.
tree.Nodes.Clear(); foreach (UserNode userNode in BuildUserNodes(users)) tree.Nodes.Add(userNode);Refresh();
basically the code above causes the scrollbar rendering to fail (red X) and it throws the same error as above. When it is trying to PositionChildElements() it chokes. This doesn't happen in the 2041 service release.
at Infragistics.Win.UltraWinTree.NodeClientAreaUIElement.PositionChildElements() at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive)
I will try to create a simple example in my spare time but for now this might get you started.thanks for getting back to me.-Ken
Hello Ken,
Could you please provide a reproduction sample for this error? We will use the sample to look into the issue and get you a solution as soon as possible.
In the meantime, you should be able to reference either the assemblies for 2041 or the Release Version (Build 1000).
UPDATE 2:
The problem also exists in SR 2056.
-Ken
UPDATE:
I reverted back to SR 2041 and the problem goes away. There is definitely a problem with Drawing trees in the 2063 build.
I need to get the 2041 installer but I can't find it anywhere. Can anyone from IG respond to this? This is an emergency that we need to fix ASAP.
thanks -Ken
CBS Television Stations kvillines@cbs.com