Tabcontrol memory leak
im using http://msdn.microsoft.com/en-us/magazine/dd419663.aspx
I find that the tab control's tab are not releasing memory upon closing.
Anyone found a solution for 开发者_如何转开发this?
Memory doesn't always get released immediately by the CLR.
Because your question is about a sample from MSDN magazine, let me answer you with other articles from the same magazine...
- Garbage Collection: Automatic Memory Management in the Microsoft .NET Framework (by Jeffrey Richter)
- Garbage Collectionn Part 2: Automatic Memory Management in the Microsoft .NET Framework
- CLR Inside Out - Investigating Memory Issues
These articles are a little older and i could have pointed out newer versions, i just thought it was rather poetic to get your answers from the same place.
For newer articles, try these:
- Automatic Memory Management
- Garbage Collection
- Understanding Garbage Collection in .NET
(Note that these last three have been stolen shamelessly from Mitch Wheat's answer here.)
精彩评论