Quantcast
Channel: Measurement Studio for .NET Languages topics
Viewing all articles
Browse latest Browse all 1999

WPF Graph - exception in NationalInstruments.Controls.Graphs.dll

$
0
0

Hello.

I am using NI Graphs in my WPF application. The graphs are binded to ChartCollection<TimeSpan, double> object. See following graph:

 

2018-01-04_14h09_51.png

 

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.

 


Viewing all articles
Browse latest Browse all 1999

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>