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?
The exception is still thrown and caught inside our render loop.
Render loop exceptions are output to the console window. You can get more verbose output by setting the property SciChartSurface.DebugWhySciChartDoesntRender = true.
We can’t allow exceptions that occur inside the render loop to be uncaught, as the render loop is processed asynchronously and any uncaught exceptions that occur here will just crash your whole app 🙂
Hope this helps,
Please login first to submit.