Hi,
some time I got this exception if data series are empty:
SciChartSurface didn't render, because an exception was thrown:
Message: Der Index war außerhalb des Arraybereichs.
Stack Trace: bei A.`1.(Int32 )
bei A.`1.(Int32 )
bei A.`1.get_(Int32 )
bei A.`1.get_Item(Int32 index)
bei Abt.Controls.SciChart.Model.DataSeries.DataSeries`2.XB(IRange C, SearchMode D, SearchMode I)
bei Abt.Controls.SciChart.Model.DataSeries.DataSeries`2.WB(IRange C, SearchMode D, SearchMode I)
bei Abt.Controls.SciChart.Model.DataSeries.DataSeries`2.GetIndicesRange(IRange range)
bei A..(AxisCollection , IRenderableSeries , RenderPassInfo , IPointResamplerFactory , IDataSeries& , IndexRange& , IPointSeries& )
bei A..(ISciChartSurface , Size )
bei A..RenderLoop(IRenderContext2D renderContext)
bei Abt.Controls.SciChart.Visuals.SciChartSurface.DoDrawingLoop()
I use SciChart 3.1.0.5114
regrads
- Tobias asked 10 years ago
- You must login to post comments
Hi Tobias,
We have found and fixed a bug in Fifo Series where GetEnumerator() returned a non-empty IEnumerator when Count() was 0. This was causing an IndexOutOfRangeException() when calling DataSeries.XRange if you had an empty Fifo Series.
This bug is fixed in build 3.1.0.5131, which you can get from our Nightly Build server. Please let us know if the issue is resolved.
Best regards,
Andrew
- Andrew Burnett-Thompson answered 10 years ago
- You must login to post comments
Hi Andrew,
yes now it is working again! Thanks for the quick Respons.
Best regards,
Tobias
- Tobias answered 10 years ago
- You must login to post comments
Please login first to submit.