SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!
Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.
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.