Disposing a component
how to dispose a component using c#.net
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Feb 22, 2012, 4:42 AM
Also set any variables which reference the component and are still in scope to null. The managed memory it is using will then be reclaimed by the garbage collector in due course.