This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi There seems to be a memory leak with the DataGrid when changing ItemsSource. Whilst using a memory profiler I noticed that the DataGrid was still holding onto previously bound objects. I have quickly written the following code that replicated the memory leak. Alternating between clicking Button1 and Button2 sees the number of instances of Blah grow. Using the memory profiler shows that they are all still being referenced by the DataGrid. It looks like the DataGrid is not unsubscribing from a collectionchanged event when the ItemsSource is set.
Thanks Chris |
|
|
Hello Zep This sounds similar to this issue posted a little while ago: http://www.mindscapehq.com/forums/thread/362080 This issue has been resolved, so you may just need to get the latest nightly build. Please download the latest nightly build from the downloads page and let me know if the issue is resolved for you or not. http://www.mindscapehq.com/products/wpfelements/nightly-builds Thanks Jason Fauchelle |
|