Garbage Collection of Nodes Removed From Treeview Control

KeysCoder

Member
Joined
Apr 10, 2006
Messages
18
Location
Florida Keys
Programming Experience
3-5
If I remove a node from the treeview control like this:

treeview1.selectednode.nodes(0).remove

without first assigning the node to a variable, is that node actually disposed of or is it floating out there in limbo - taking up resources? If it is just floating in limbo, can the garbage collector see it when it comes looking to reclaim unused resources?
 
As good as any. TreeNode doesn't implement IDisposable.
 
Back
Top