SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

0 votes
4k views

I purposely gave SciChart a bad axis ID with: fastLineRenderableSeries.YAxisId = “asdf”;

When I run my application within Visual Studio, Visual Studio throws this exception:

A first chance exception of type ‘System.InvalidOperationException’ occurred in Abt.Controls.SciChart.Wpf.dll. AxisCollection.GetAxisById(‘asdf’) returned no axis with ID=asdf. Please check you have added an axis with this Id to the AxisCollection

But when I run my compiled exe I don’t even get an unhandled exception error. SciChart simply doesn’t draw the chart. I want to catch this exception but my attempts to set up a try/catch have failed.

Is there a way for me to catch this sort of exception so I can log it?

  • Dave Doerr asked 4 years ago
  • last active 4 years ago
Showing 1 result
This template supports the sidebar's widgets. Add one or use Full Width layout.