Hello.
I am using NI Graphs in my WPF application. The graphs are binded to ChartCollection<TimeSpan, double> object. See following graph:
The graph has a lot of plots, so I had to increase capacity of ChartCollection. But when I increase capacity of ChartCollection object for example to 100.000.000, ni:Graph generate following exception when binding data, and application crash down.
A first chance exception of type 'System.OutOfMemoryException' occurred in NationalInstruments.Controls.Graphs.dll
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at NationalInstruments.Controls.Internal.ChartDataStore`1.UpdateCapacity(Int32 newCapacity)
at NationalInstruments.Controls.ChartCollection`2.set_Capacity(Int32 value)
at DeratingEvaluation.Test.LoadFiles(String path) in ...
What is the maximum of the capacity I can use? The ChartCollection object capacity is limited by Int32, i.e. up to 2.147.483.647.
Unfortunately I need to show many plots with many points so I need to increase the capacity so much.
Thank you for help.