Ok guys...3rd thread about this....
Q1: Does the variables that are declared like int x = new int(); use memory if not set to null after it's no longer used?
Q2:is there a way to delete a variable if it's no longer used?
Q3:is it of any use to set the variables/arrays/hastables etc to null after not being used anymore?
Q4:when does GC.Collect() collects the garbage (resources)?
I am using GC.Collect in a thread running every 1 second and I've also set the variables to null after their no longer used but it seems just like more and more memory is used to idk o.O
If you can't give any answer it's good anyway :)
Q1: Does the variables that are declared like int x = new int(); use memory if not set to null after it's no longer used?
Q2:is there a way to delete a variable if it's no longer used?
Q3:is it of any use to set the variables/arrays/hastables etc to null after not being used anymore?
Q4:when does GC.Collect() collects the garbage (resources)?
I am using GC.Collect in a thread running every 1 second and I've also set the variables to null after their no longer used but it seems just like more and more memory is used to idk o.O
If you can't give any answer it's good anyway :)