[.NET] 請問一下如何知道物件已被GC回收?
因為在用MDI時,子Frame如果visible從true改成flase
有些時候子Frame會被GC回收掉… 0rz
目前我用的方式是很蠢的,如以下,請問有沒有正確的作法啊 多謝……
if 子Frame is nothing then
子Frame = new frame
end if
if 子Frame.created = false then
子Frame = new frame
end if
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.216.247.168
※ 編輯: taroa 來自: 61.216.247.168 (07/14 02:18)
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 3 篇):