This is a migrated thread and some comments may be shown as answers.

[Solved] Crash on launch (race condition)

1 Answer 78 Views
Chart for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dan
Top achievements
Rank 1
Dan asked on 26 Jan 2013, 05:41 PM

My main app page has a chart on it with the following:

<telerikChart:ChartTrackBallBehavior ShowIntersectionPoints="False"
                                     ShowInfo="True"
                                     TrackInfoUpdated="OnTrackInfoUpdated">
    <telerik:ChartTrackBallBehavior.LineStyle>
        <Style TargetType="Polyline">
            <Setter Property="Fill" Value="Transparent" />
        </Style>
    </telerik:ChartTrackBallBehavior.LineStyle>
</telerikChart:ChartTrackBallBehavior>


If I move my move my mouse around as my app launches, sometimes I hit an unhandled exception with the following stack:

System.ArgumentNullException

   at Telerik.UI.Xaml.Controls.Chart.ChartTrackBallBehavior.GetTrackInfoTemplate(DependencyObject instance)

   at Telerik.UI.Xaml.Controls.Chart.ChartTrackBallBehavior.BuildIndividualTrackInfos(ChartDataContext context)

   at Telerik.UI.Xaml.Controls.Chart.ChartTrackBallBehavior.UpdateTrackInfo(ChartDataContext context)

   at Telerik.UI.Xaml.Controls.Chart.ChartTrackBallBehavior.UpdateVisuals()

   at Telerik.UI.Xaml.Controls.Chart.ChartTrackBallBehavior.OnChartUIUpdated()

   at Telerik.UI.Xaml.Controls.Chart.RadChartBase.NotifyUIUpdated()

   at Telerik.UI.Xaml.Controls.Chart.RadChartBase.OnUIUpdated()

   at Telerik.UI.Xaml.Controls.Chart.PresenterBase.UpdateUI(ChartLayoutContext context)

   at Telerik.UI.Xaml.Controls.Chart.RadChartBase.CallUpdateUI()

   at Telerik.UI.Xaml.Controls.Chart.RadChartBase.ArrangeOverride(Size finalSize)

Any ideas how to work around this? I don't have a simple repro case at this point.

Thanks

1 Answer, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 30 Jan 2013, 01:09 PM
Hello Dan,

Thank you for using our RadControls for Windows 8!

Unfortunately I am still unable to reproduce the described behavior in my local tests. Could you elaborate a bit more on your specific scenario -- do you use the default TrackInfoTemplate or you have defined custom one? Did you manage to isolate the issue in a stand-alone project or is it reproducible only in your production app? If you cannot send the application, can you send the chart declaration so I can review it locally and try to pinpoint the reason for the erroneous issue.

I am looking forward to your reply.

 

Greetings,
Ivaylo Gergov
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
Chart for XAML
Asked by
Dan
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Share this question
or