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

Memory Leak In WPF When Binding With DataTable/DataView

$
0
0

Hello,

I Have a Project in WPF Which is using DataTable/DataView and Binded with View Everywhere. Now i am facing problem of memory leak. today i have google on web and found that due to , INotoify Interface is not implemented in DataTable/DataView  Memory leak is occuring. am i right due to this reason memory leak is occuring. i need your suggestion on following points.

1. is it good practise or not to use DataTable/Dataview in WPF.
2. is there way to Implement INotify Interface in DataTable/Dataview.
3. is There any way to Focely Relese Unused Memory.
4. can i used DataTable/DataView of DotNet Standard in WPF.
5. any other way to come out with this problme
6. Does Memory Leak Affect on performance. I mean suppose There are 8 GB RAM , 2 GB RAM Using OS and Other Application and my application use 3 GB Memory in worse case due to Memory Leak and there are available 3 GB Memory


I Have created a small Test project.
Run the project
add new tab by clicking on button multiple times
remove all tabs
memory is not relesing

if you commented binding in usercontrol and do same step then memory is relesing.
Here is project  : TestProject

In My applicaton i am using Dot Net Framework 4.0


Prem Shah



Viewing all articles
Browse latest Browse all 18858

Trending Articles



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