Quantcast
Channel: OxyPlot (moved to GitHub)
Viewing all articles
Browse latest Browse all 2061

Created Unassigned: Memory Leak in LineSeries [10151]

$
0
0
As described in this discussion:
https://oxyplot.codeplex.com/discussions/532576#post1215810

When LineSeries is bound to rapidly changing data, it can be observed that stale data which is no longer displayed is not being properly garbage collected. This leak is independent of the storage class that is used in the view model layer; the one test case that avoided the memory leak was by binding the line series to an observable collection, and clearing the observable collection prior to each update, however this process is expected to be extremely inefficient.

The attached project is equivalent to the usage within my application, and exhibits the leak. Eventually, the application should throw an OutOfMemoryException (typically within a few hours), although the leak can be observed rather quickly from a memory profiler.

Viewing all articles
Browse latest Browse all 2061

Trending Articles



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