Populating ArrayList with Objects

Ariez

Centurion
Joined
Feb 28, 2003
Messages
164
I'm using

Visual Basic:
MyArrayList.Add(new MyClassInstance)

I want to make sure that MyClassInstance is released from memory:
Does the MyArrayList.RemoveAt(index) call does it
or do i have to:
Visual Basic:
  MyArrayList(index)=nothing
  MyArrayList.RemoveAt(index)
 
I'm pretty sure it will be destroyed by the GarbageCollector once you remove it
or destroy the ArrayList.
 
Back
Top