Wednesday, January 20, 2010
Memory Leaks with Delegates
When adding delegate (+=), you should remove it (-=) in order to release the delegate object and allow the GC to collect it. If a delegate maintains a reference to an externally declared object, and is not removed (-=), you will have a memory leak. For more details, click this article.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment