Hello:
please review the project at https://github.com/jiripik/WpfDataTableMemoryLeaks and check out the memory before the DataTable's ItemsSource was assigned to a DataTable and after it was reset to null.
You will see that the allocated memory as measured by
GC.GetTotalMemory(true)
substantially increases.
If I use List or ObservableCollection, there is no such a memory increase.
Can you please advise if I miss something or whether there is truly a memory leak?
Jiri Pik, jiri@jiripik.com Web: http://jiripik.com, LinkedIn: http://www.linkedin.com/in/jiripik, Twitter: http://twitter.com/@JiriPik