Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

WPF IntensityGraph explodes memory?

Hello, we have been using Measurement Studio for windows forms for a long time, but has recently started to use the WPF library. However, we now have a problem with the WPF version of the IntensityGraph. We are using it to display a real time version of a waterfall plot. Essentially the same code as used in M19753, however we have upscaled it such that we have a capacity of 2000 in each collection and a length of 2500 samples in each appended element. This to improve resolution. However, the result is that the memory explodes after a short while(> 2Gb), crashing the application. Doing the same plot using the windows form version of the IntensityGraph is no problem. We then set X and Y history to 2000 and 2500 and use the append function to add new elements to the graph. The memory usage is less than 100 Mb and code runs smoothly. What seems to be the problem here? Is it we that do something wrong or is it not possible to gain the same efficiency with the WPF version as with the append function in the windows forms version? If necessary I can provide simple code examples of both version to demonstrate issue.

 
0 Kudos
Message 1 of 2
(973 Views)

Have you tried the approach from this similar forum question?

 

If that does not help, it would be very useful to see example code for how you are sending data to the WPF intensity graph.

~ Paul H
0 Kudos
Message 2 of 2
(927 Views)