P
Peter Schmitz
Hi everyone,
I am new to .net programming and I do have some serious memory problems:
In my current application I need to maintain a big linked list (of Type
ArrayList), which includes items/class instances that contain filled members
of ArrayList themselves,e.g.
Public Class MyTestClass
Public myList as ArrayList 'filled with data
End Class
Dim mytest as new ArrayList 'contains lots of MyTestClasses
Now, when the main thread of my application is finished, I call
mytest.Clear() to free the memory I used. Unfortunately, the RAM consumption
of my application does not change through this call. Do I have to call Clear
on every 'index' in my ArrayList? Is there a way to explicitly delete a
variable in VB .net (just as malloc() and free() in good old C++)?
Best wishes,
Peter
I am new to .net programming and I do have some serious memory problems:
In my current application I need to maintain a big linked list (of Type
ArrayList), which includes items/class instances that contain filled members
of ArrayList themselves,e.g.
Public Class MyTestClass
Public myList as ArrayList 'filled with data
End Class
Dim mytest as new ArrayList 'contains lots of MyTestClasses
Now, when the main thread of my application is finished, I call
mytest.Clear() to free the memory I used. Unfortunately, the RAM consumption
of my application does not change through this call. Do I have to call Clear
on every 'index' in my ArrayList? Is there a way to explicitly delete a
variable in VB .net (just as malloc() and free() in good old C++)?
Best wishes,
Peter