Populating ArrayList with Objects

Ariez

Well-known member
Joined
Feb 28, 2003
Messages
164
Im using

[VB]
MyArrayList.Add(new MyClassInstance)
[/VB]

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