Disposing a component
how to dispose a component using c#.net
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Feb 21, 2012, 11:42 PM EST
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.