thubble Posted August 11, 2009 Report Posted August 11, 2009 I'm using build 3499 and have the following issue: I can set the chart's ItemsSource to a DataView once and it works fine, but if I try to set the ItemsSource again (to refresh the chart) it will crash with the following stack trace: at System.Windows.Media.VisualTreeHelper.GetChild(DependencyObject reference, Int32 childIndex) at ChartFX.WPF.Animation.SeriesAnimation.ChartFX.WPF.IAnimation.Attach(FrameworkElement owner, Object oldItem, Object newItem, AnimationFlags flags) at ChartFX.WPF.Internal.PlotAreaCore.b(LogicalItemCollection A_0, LogicalItemCollection A_1, PaintMark A_2) at ChartFX.WPF.Internal.PlotAreaCore.a(LogicalItemCollection A_0, LogicalItemCollection A_1, PaintMark A_2) at ChartFX.WPF.Internal.PlotAreaCore.a(Double A_0, Double A_1, Boolean A_2) at ChartFX.WPF.Internal.PlotAreaCore.b(Double A_0, Double A_1, Boolean A_2) at ChartFX.WPF.Internal.PlotAreaCore.a(RenderStyles A_0, Double A_1, Double A_2) at ChartFX.WPF.Chart.a(RenderStyles A_0) at ChartFX.WPF.Chart.i(Boolean A_0) at ChartFX.WPF.Chart.MeasureOverride(Size constraint) at System.Windows.FrameworkElement.MeasureCore(Size availableSize) at System.Windows.UIElement.Measure(Size availableSize) at System.Windows.ContextLayoutManager.UpdateLayout() at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg) 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) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at System.Threading.ExecutionContext.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.ProcessQueue() at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) 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) at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) at System.Windows.Threading.Dispatcher.TranslateAndDispatchMessage(MSG& msg) I have a test app that will reproduce this. Please let me know if you'd like me to send it. I'm assuming the address is still wpf@softwarefx.com ? Thanks. Quote
thubble Posted August 11, 2009 Author Report Posted August 11, 2009 I forgot to mention - it looks like almost the exact same issue here: http://www.softwarefx.co.kr/Forums/ShowPost.aspx?PostID=1688 (ran this through Google Translate). Quote
thubble Posted August 11, 2009 Author Report Posted August 11, 2009 Attached is an app that reproduces the issue. The first time you click the "Test" button (which reloads the data), it will load fine. However, if you click it again the error will occur. Quote
JuanC Posted August 12, 2009 Report Posted August 12, 2009 We have fixed this issue and we are in the process of testing the fix. It should be available in our next hotfix build 3511 or later. You can also workaround the issue by turning off Animation.OnDataChange. JuanC Quote
thubble Posted August 14, 2009 Author Report Posted August 14, 2009 Build 3511 does appear to fix this issue. It also seems to fix the issues we were having with changing data bindings and using axis label templates. Thanks! Quote
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.