SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components
I constantly have OutOfMemoryException when I set IChartSeriesViewModel.DataSeries.FifoCapacity and there are 4 or more chart on a single SciChartSurface.
Exception’s code block is
viewModel.DataSeries.FifoCapacity = 1000000;
where viewModel is newly created instance of ChartSeriesViewModel class.
What it could be?
Exception stack trace is
A. `1..ctor(Int32 )
Abt.Controls.SciChart.Model.DataSeries.XyDataSeries`2.ClearColumns()
Abt.Controls.SciChart.Model.DataSeries.DataSeries`2.Clear()
Abt.Controls.SciChart.Model.DataSeries.DataSeries`2.set_FifoCapacity(Nullable`1 value)
p.s. I have no opportunity to set x64 as target platform. My SciChart version is 3.1 but there is the same problem with 3.22.
From your comments above – 4 dataseries should not cause this problem, even in 32 bit.
Therefore 4x Fifo DataSeries (assuming TX=double, TY=double) should require 4(8+8)2*1000000=128MBytes.
Q1: How much memory do you observe the application to be using?
Q2: Are you sure that the memory is all allocated by SciChart? (Please post memory profiler screenshots for example)
Q3: How much memory does the target PC have?
Best regards,
Andrew
Please login first to submit.