daviddam Posted July 16, 2008 Report Share Posted July 16, 2008 When the chart area (control - legend size) gets small my app crashes. The exception is below. I recently added a timespan to the x-axis of 90 days. If I take out the timespan the chart does not crash, so it appears to have to do with the timespan. System.ArgumentOutOfRangeException: The added or subtracted value results in an un-representable DateTime. Parameter name: months at System.DateTime.AddMonths(Int32 months) at cq.a(Double A_0) at cq.a(Double A_0, Double A_1, Boolean& A_2, Boolean& A_3, Double& A_4) at ChartFX.WPF.Axis.b(bi A_0, as& A_1, b3& A_2, Double A_3, Double A_4, j A_5, Double A_6, Double A_7) at ChartFX.WPF.Axis.a(bi A_0, as& A_1, b3& A_2, Double A_3, Double A_4, j A_5, Double A_6, Double A_7) at ChartFX.WPF.Axis.a(Size A_0, j A_1, FrameworkElement A_2, IPlotArea A_3, cb A_4) at ChartFX.WPF.Axis.a(Object A_0, RenderEventArgs A_1, cb A_2) at ChartFX.WPF.Axis.d.a(Object A_0, RenderEventArgs A_1) at ChartFX.WPF.Internal.RenderEventHandler.Invoke(Object sender, RenderEventArgs e) at cd.a(PaintMark A_0, Double A_1, Double A_2, Boolean A_3, Boolean A_4, RenderEventArgs& A_5) at cd.a(PaintMark A_0, cn A_1, Double A_2, Double A_3, aq[] A_4, LogicalItemCollection A_5, LogicalItemCollection A_6, Int32 A_7) at cd.a(cn A_0, Double A_1, Double A_2) at cd.d(Double A_0, Double A_1) at cd.a(Double A_0, Double A_1, Boolean A_2) at aj.OnRenderSizeChanged(SizeChangedInfo sizeInfo) at System.Windows.ContextLayoutManager.fireSizeChangedEvents() at System.Windows.ContextLayoutManager.UpdateLayout() at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg) at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork() at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget) at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler) Quote Link to comment Share on other sites More sharing options...
JuanC Posted July 18, 2008 Report Share Posted July 18, 2008 Please send an email to wpf at softwarefx dot com to request a hotfix, we have a new build that should fix this issue. Regards, JuanC Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.