I tried to update Telerik UI for Winforms today to the latest version. Everything builds and the app runs. However, when I navigate to a form that contains Pie Charts, the app crashes with an unhandled exception and I get the below Overflow error.
What changed with the chartview control that would cause this? Is this something I can fix on my end? or do I need to wait for a bug fix release?
System.OverflowException: Overflow error.
at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
at System.Drawing.Graphics.DrawRectangle(Pen pen, Single x, Single y, Single width, Single height)
at Telerik.WinControls.Paint.RadGdiGraphics.DrawRectangle(RectangleF rectangle, Color color, PenAlignment penAlignment, Single penWidth, Brush brush, DashStyle dashStyle, Single[] dashPattern)
at Telerik.WinControls.Paint.RadGdiGraphics.DrawRectangle(RectangleF rectangle, Color color, PenAlignment penAlignment, Single penWidth, DashStyle dashStyle, Single[] dashPattern)
at Telerik.WinControls.Primitives.BorderPrimitiveImpl.DrawRectangle(IGraphics graphics, RectangleF rectangle, Color[] gradientColors, Single width)
at Telerik.WinControls.Primitives.BorderPrimitiveImpl.PaintBorder(IGraphics graphics, Single angle, SizeF scale, RectangleF preferedRectangle)
at Telerik.WinControls.UI.LabelElementDrawPart.Draw()
at Telerik.WinControls.UI.PieLabelElementDrawPart.Draw()
at Telerik.WinControls.UI.PieRenderer.Draw(Object context)
at Telerik.WinControls.UI.ChartArea.Render(Object context)
at Telerik.WinControls.UI.ChartView.Draw(Object context)
at Telerik.WinControls.UI.RadChartElement.PaintElement(IGraphics graphics, Single angle, SizeF scale)
at Telerik.WinControls.RadElement.DoOwnPaint(IGraphics graphics, Single angle, SizeF scale)
at Telerik.WinControls.RadElement.Paint(IGraphics graphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadItem.PaintOverride(IGraphics screenRadGraphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadElement.PaintChild(RadElement child, IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadItem.PaintChild(RadElement child, IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadElement.PaintChildren(IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.VisualElement.PaintChildren(IGraphics graphics, Rectangle clipRectange, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadElement.Paint(IGraphics graphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RadItem.PaintOverride(IGraphics screenRadGraphics, Rectangle clipRectangle, Single angle, SizeF scale, Boolean useRelativeTransformation)
at Telerik.WinControls.RootRadElement.Paint(IGraphics graphics, Rectangle clipRectangle)
at Telerik.WinControls.RadControl.OnPaint(PaintEventArgs e)
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.ScrollableControl.WndProc(Message& m)
at Telerik.WinControls.RadControl.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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)