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)
Forgot to mention but it's the latest service release of 2013.1
Hello Greg,
Thanks for provided infromation. We already know about this issue. The issue exist if you are using:
- ultraListView1.View = UltraListViewStyle.Details
or
- ultraListView1.View = UltraListViewStyle.List
because in this case we pass through RecalculateMetrics() method of internal class UltraListViewScrollManager
We are ready with the fix and right now our QA team will verify it. I created a case for you with reference number CAS-119554-F8D2F8. By this way you will receive notification when we publish the service release which contains the fix of your issue.
If you have any questions, feel free to write me
Regards
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)
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,
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 :(