[.NET] 請問一下如何知道物件已被GC回收?

看板Visual_Basic作者 (未來主義豬)時間18年前 (2007/07/14 02:17), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/3 (看更多)
因為在用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)
文章代碼(AID): #16by7MJI (Visual_Basic)
文章代碼(AID): #16by7MJI (Visual_Basic)