Background:
I am using the November release of the Silverlight Toolkit Charting components in a monitoring application that updates several line charts every 10 or so seconds.
Each chart has a binding to an ObservableCollection. DataValuePair is a simple class containing only two properties (DateTime and int). Each time a DataValuePair is added to the collection, items that have passed a certain point in time are deleted (that is, there are always 50 DataValuePair objects in each collection).
Problem:
The memory just keeps growing. In WinDbg, I see that DataValuePair objects (even those that have been removed from ObservableCollections) are still on the heap and are links to some elements of the charting component.
There are no other object references in my application code, and objects are removed from ObservableCollections using .Remove (item). I assume that they will be removed by GC.
Can someone see if I am wrong somewhere or is it a problem with chart components?
Hooray! Chris
source
share