this.Dispose() Don't release memory used by Form after Closing it .

Posted by Ehab Sutan on Stack Overflow See other posts from Stack Overflow or by Ehab Sutan
Published on 2010-05-30T22:47:49Z Indexed on 2010/05/30 22:52 UTC
Read the original article Hit count: 151

Filed under:

Hello, in C# Application. I've a windows form application in which clicking certain button make object from a 2nd Form. On closing this 2nd From by user Memory used by this form not released (from Task Manager). I Tried using this.dispose() on exit button ,tried this.close() , tried form2 =null in the main code ,and tried clearing all controls from this form by code before Disposing and every time the clicks the button memory usage by the application increases more and memory used by previous instance not released. What shall i use to solve this problem ?

© Stack Overflow or respective owner

Related posts about c#