Click here to Skip to main content
15,917,328 members
Articles / Programming Languages / C#

Always dispose a form

Rate me:
Please Sign up or sign in to vote.
4.43/5 (9 votes)
23 Nov 2009CPOL 15.9K   9  
Some time ago, we noticed that in one of our projects the size of memory of our application is growing and it never decreased.After some checking and testing we realized that even if we have a local reference to a form, if we haven't  disposed it explicitly it will remain on the stack and never

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
Iran (Islamic Republic of) Iran (Islamic Republic of)
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions