In a VB6 application, I have a Dictionary
whose keys are String
s and values are instances of a custom class. If I call RemoveAll()
on the Dictionary
, will it first free the custom objects? Or do I explicitly need to do this myself?
Dim d as Scripting.Dictionary
d("a") = New clsCustom
d("b") = New clsCustom
' Are these two lines necessary?
Set d("a") = Nothing
Set d("b") = Nothing
d.RemoveAll