❔ When does the IDisposable objects gets automatically disposed ?
Now my question is in which case the memory will be disposed if I return it inside the using case or outside of the using case or if it does not matters where the result is returned?
5 Replies
Is there a way to force GC to release the memory?
because my app (WPF desktop app) keeps draining ram after some time
Is there any resource link which can help me handle that?
You can use the profiler... somehow
It should tell you what uses most memory in your code
Not sure, because I never used it to be honest
Get dotmemory from Jetbrains
If you have a license
Thanks all i will look into it
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.