OutOfMemoryException with ItemsControl

Oystein Bjorke 10 jaar geleden 0
This discussion was imported from CodePlex

sharethl wrote at 2014-07-03 01:24:

Updated: 7/3/2014
I will fire an issue.
OutOfMemoryException is not related to ItemsControl.
It is related to LineSeries.Smooth = true.

Exception at : CanonicalSplineHelper.Segment(). Line207.

How to reproduce this:
  1. Set lineSeries.Smooth = true when create lineSeries.
    eg: var ls = new LineSeries { Title = title,Smooth = true};
  2. Zoom in by pushing down mid-mouse button, create rectangle zoom area.
  3. after several times, out of memory exception throws.
Image

Tested with version oxyplot-d91d95940aa9