【发布时间】:2011-03-25 00:49:02
【问题描述】:
我想知道当以下情况发生时,是否有人能说出与记忆有关的情况:
Dict = New Dictionary --- Col = New Collection
Dict.Add Key, CustomClassOne
Dict.Add Key2, CustomClassTwo
Dict.Add Key3, CustomClassThree
Dict.Remove Key3
At this point is Key3 removed from memory or would I have to Set Dict.Item(Key3) = Nothing to remove it from memory?
Set Dict = Nothing '// will this remove All the above added custom class objects?
Set Col = Nothing '// Same question as above
呃 VB 内存管理.... TY 给你的时间, - 奥斯汀
【问题讨论】:
标签: memory object collections vb6 dictionary