Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

DataGrid's ItemsSource as DataTable causes memory leaks?

$
0
0

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


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>