2
Hi @Evgenie,
Yes, thats enough to clear-up the memory used up. Also, you can specify the null vaues to any kind of return type variables in that part
//-set null vaues here.
Regards,
Amresh S.
0
@Amresh S
My many thanks, that worked perfectly! This reduced about 200M of RAM. God bless you!
0
I need to test it at home, but have a question for now.
About this line:
GC.SuppressFinalize(this);
I am using GC.Collect in my code, can those two garbage collectors both work when used together?
And to make sure:
I can use any kind of objects here, right? Except images I also have MediaElements. I guess that also works on them? So, all things I want to dispose, I need to put inside this? I can put them all here, together?
Sorry if my questions are silly.
- if (disposing)
- {
- // Set Null values to your unused variables here
- }