Click here to Skip to main content
16,017,852 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to understand the disadvantages of not using dispose() method on managed objects in C#
So if someone can please provide me with few examples

What I have tried:

I haven't tried anything
i'm looking for few sample programs for my problem
Posted
Updated 21-Nov-18 5:51am

The disadvantage of not disposing of managed objects is akin to "hoarding": you keep collecting (new) stuff and never throw anything out, even when done with it.

After a while, you get an "out of room" condition and get evicted from your domain by an authority.
 
Share this answer
 
No, because we do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!

If you meet a specific problem, then please ask about that and we will do our best to help. But we aren't going to do it all for you!
 
Share this answer
 
Comments
CHill60 21-Nov-18 3:36am    
What is the name of that tool?

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900