This project is read-only.

How should I clear the resources used by ChartPlotter (D3 v0.3)?

Jan 18, 2011 at 12:54 PM
Edited Jan 18, 2011 at 12:57 PM

I am using D3 v0.3. I  am drawing a LineGraph inside a WPF window using ChartPlotter. When I close this window how should I clean up the resources used by ChartPlotter? If I look at the heap, I see collections of CircleElementPointMarker & Context on the heap and they keep on growing as and when I open/close window. Please let me know an exact way to clean up D3 ChartPlotter so that GC will be able to collect it.

FYI, I am using following lines of code in Window_closing :-

chartPlotter.Content = null;