M
mat
Hello.
I am having major problems with memory leaking in my c# app.
Here's my problem:
I have an array of objects that need to be re-created every time new
information
is to be shown in them. So for each element in the array I create
(new) a new object. The problem is the 'old' contents of the array is
still in memory.
How can I get rid of the old object before creating the new one?
The class does not contain anything that contains a Dispose function
so I cannot call that.
Can anyone help?
thanks,
Mat
I am having major problems with memory leaking in my c# app.
Here's my problem:
I have an array of objects that need to be re-created every time new
information
is to be shown in them. So for each element in the array I create
(new) a new object. The problem is the 'old' contents of the array is
still in memory.
How can I get rid of the old object before creating the new one?
The class does not contain anything that contains a Dispose function
so I cannot call that.
Can anyone help?
thanks,
Mat