Upgraded to latest service release and now some users are reporting this error.
Not sure if it is definitely related to this particular service release??
Application_ThreadException():System.DivideByZeroException: Attempted to divide by zero. at Infragistics.Win.UltraWinListView.UltraListViewScrollManager.RecalculateMetrics() at Infragistics.Win.UltraWinListView.UltraListViewScrollManager.get_HScrollBarInfo() at Infragistics.Win.UltraWinListView.UltraListViewScrollManager.VerifyScrollPosition() at Infragistics.Win.UltraWinListView.UltraListViewItemContainerUIElement.PositionChildElementsList(UIElementsCollection oldElements) at Infragistics.Win.UltraWinListView.UltraListViewItemContainerUIElement.PositionChildElements() at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive) 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.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) at Infragistics.Win.UltraControlBase.OnPaint(PaintEventArgs pe) at Infragistics.Win.UltraWinListView.UltraListView.OnPaint(PaintEventArgs eventArgs) at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer) at System.Windows.Forms.Control.WmPaint(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Attempted to divide by zero exception got fixed after setting the Docking of the UltraWinListView to None.
Hello Anil, Greg,
Please note that this issue is fixed in service release versions WinForms_13.1.20131.2048, WinForms_12.2.20122.2096 or later.
You could download the latest available service release from our web site: Infragistics.com -> Accounts -> My Key and Downloads -> Service Releases
Let me know if you have any questions,
Regards
I tried rewriting the code that was resizing the control. I can't remember if that was the fix or downloading the latest service release fixed it.
it seems to be fixed for me now.
unlike trying to post this comment on iOS 7 safari :(
We are facing the same issue, Do you have immediate fix or any workaround for this.
The following error occursAttempted to divide by zero.
Method Name: Void RecalculateMetrics()Object Name: Infragistics4.Win.UltraWinListView.v13.1Stack Trace: at Infragistics.Win.UltraWinListView.UltraListViewScrollManager.RecalculateMetrics() at Infragistics.Win.UltraWinListView.UltraListViewScrollManager.get_HScrollBarInfo() at Infragistics.Win.UltraWinListView.UltraListViewScrollManager.VerifyScrollPosition() at Infragistics.Win.UltraWinListView.UltraListViewUIElement.PositionChildElements() at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive) at Infragistics.Win.UIElement.VerifyChildElements(Boolean recursive) at Infragistics.Win.ControlUIElementBase.VerifyIfElementsChanged(Boolean verify, Boolean syncMouseEntered) at Infragistics.Win.ControlUIElementBase.get_CurrentCursor() at Infragistics.Win.UltraControlBase.get_Cursor() at System.Windows.Forms.Control.WmSetCursor(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Still waiting for fix.. rolled back from SR2040 to 2027 but still seeing the error. I will try looking for this code in my project