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.
精彩评论