开发者

Should a control properly remove from parent object before disposing?

Well, should I properly remove any control from the parent object before it is set to dispose? Will this cause memory leak to the开发者_运维百科 parent object if it is disposed before removing it from parent?


Disposing is all about releasing unmanaged resources while removing a reference will only ever effect the garbage collector which only deals with managed memory so no, you will not cause a memory leak in the way you are describing.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜