Page 1 of 1

Arction.Wpf.Charting.ChartException Memory Allocation failed

Posted: Tue Feb 21, 2017 10:20 am
by abdul.qadirdeveloper
[I am using licensed (not trial) version of LightningChart]
I am using LightningChartUltimateWpf without binding, I have very large data to show on Chart, it has 2 lines and 2 Bar Series, where each series has 41.7 K Data points
but LightningChartUltimateWpf is throughing Arction.Wpf.Charting.ChartException.
here is details of the exception
Arction.Wpf.Charting.ChartException was unhandled
Message: An unhandled exception of type 'Arction.Wpf.Charting.ChartException' occurred in Arction.Wpf.Charting.LightningChartUltimate.dll
Additional information: Memory allocation failed: HRESULT: [0x8007000E], Module: [Unknown], ApiCode: [Unknown/Unknown], Message: Not enough storage is available to complete this operation.
Stack trace: at Arction.RenderingEngine11.RenderingEngine11.QC(KD& A, Boolean B)
at Arction.RenderingEngine11.RenderingEngine11.DrawDataAsStencil(Object drawData)
at Arction.Wpf.Charting.LightningChartUltimate.LLC(RectangleF A, PointFloat B, Double C, Fill F, Boolean G, Boolean H)
at Arction.Wpf.Charting.LightningChartUltimate.ITC(RectangleF A, PointFloat B, Fill C, Boolean F, RectangleF G, Double H, BorderType I, Single J, Color K, Color L, Boolean M)
at Arction.Wpf.Charting.LightningChartUltimate.RVC(List`1 A, List`1 B, Double C, Single F, Color G, Boolean H)
at Arction.Wpf.Charting.LightningChartUltimate.WVC(AxisX A, Rectangle B)
at Arction.Wpf.Charting.LightningChartUltimate.VVC(AxisX A, Rectangle B)
at Arction.Wpf.Charting.LightningChartUltimate.XRC()
at Arction.Wpf.Charting.LightningChartUltimate.DLC()

Re: Arction.Wpf.Charting.ChartException Memory Allocation fa

Posted: Tue Feb 21, 2017 10:46 am
by ArctionPasi
Probably the out-of-memory comes because you have quite massive set of bars. Bars are complex to render. Please replace your BarSeries with a LineCollection (in ViewXY.LineCollections). You can draw bars with them as well, and they are more compact and faster.