Click here to Skip to main content
15,916,280 members
Home / Discussions / C#
   

C#

 
QuestionRotate the world Pin
Sabry190527-Apr-06 7:43
Sabry190527-Apr-06 7:43 
AnswerRe: Rotate the world Pin
Anubhava Dimri28-Jun-10 19:24
Anubhava Dimri28-Jun-10 19:24 
QuestionHow to retrieve DVD interfaces from a custom DirectSHow graph? Pin
manusse27-Apr-06 5:45
manusse27-Apr-06 5:45 
AnswerRe: How to retrieve DVD interfaces from a custom DirectSHow graph? Pin
manusse28-Apr-06 1:00
manusse28-Apr-06 1:00 
QuestionDatalist with CheckboxList Pin
ZeedijkMike27-Apr-06 4:38
ZeedijkMike27-Apr-06 4:38 
AnswerRe: Datalist with CheckboxList Pin
Paul Brower27-Apr-06 4:49
Paul Brower27-Apr-06 4:49 
GeneralRe: Datalist with CheckboxList Pin
ZeedijkMike27-Apr-06 5:21
ZeedijkMike27-Apr-06 5:21 
GeneralRe: Datalist with CheckboxList Pin
mikker_12327-Apr-06 7:37
mikker_12327-Apr-06 7:37 
GeneralRe: Datalist with CheckboxList Pin
ZeedijkMike27-Apr-06 23:11
ZeedijkMike27-Apr-06 23:11 
QuestionPrevent my process from being killed. Pin
syntax^8427-Apr-06 3:58
syntax^8427-Apr-06 3:58 
AnswerRe: Prevent my process from being killed. Pin
Vasudevan Deepak Kumar27-Apr-06 4:00
Vasudevan Deepak Kumar27-Apr-06 4:00 
GeneralRe: Prevent my process from being killed. Pin
syntax^8427-Apr-06 4:04
syntax^8427-Apr-06 4:04 
GeneralRe: Prevent my process from being killed. Pin
Judah Gabriel Himango27-Apr-06 4:47
sponsorJudah Gabriel Himango27-Apr-06 4:47 
GeneralRe: Prevent my process from being killed. Pin
syntax^8427-Apr-06 4:58
syntax^8427-Apr-06 4:58 
QuestionDatabinding not working...? Pin
mikker_12327-Apr-06 2:58
mikker_12327-Apr-06 2:58 
AnswerRe: Databinding not working...? Pin
Josh Smith27-Apr-06 3:53
Josh Smith27-Apr-06 3:53 
GeneralRe: Databinding not working...? Pin
mikker_12327-Apr-06 5:16
mikker_12327-Apr-06 5:16 
GeneralRe: Databinding not working...? Pin
Josh Smith27-Apr-06 7:09
Josh Smith27-Apr-06 7:09 
GeneralRe: Databinding not working...? Pin
mikker_12327-Apr-06 7:33
mikker_12327-Apr-06 7:33 
QuestionDATA GRID Pin
MilindKumar27-Apr-06 2:20
MilindKumar27-Apr-06 2:20 
AnswerRe: DATA GRID Pin
Josh Smith27-Apr-06 4:25
Josh Smith27-Apr-06 4:25 
QuestionMemoryOutException Pin
agmb27-Apr-06 2:18
agmb27-Apr-06 2:18 
AnswerRe: MemoryOutException Pin
Ed.Poore27-Apr-06 3:39
Ed.Poore27-Apr-06 3:39 
AnswerRe: MemoryOutException Pin
V.27-Apr-06 4:13
professionalV.27-Apr-06 4:13 
AnswerRe: MemoryOutException Pin
Guffa27-Apr-06 7:12
Guffa27-Apr-06 7:12 
Any object that implents IDisposable has to be disposed to be up for garbage collection.

If your object contains other objects that implements IDisposable, your object should also do so, in order for your object to be able to dispose the objects that it contains.

When implementing IDisposable you should also implement a finalizer. That keeps most memory leak accidents from happening. If the garbage collector finds objects that could be collected but are not disposed correctly, it will call the finalizer to make the object dispose itself. If the object has no finalizer and the inner objects are not referenced from elsewhere (so they can be disposed), the object can never be collected.

MSDN: IDisposable interface[^]

---
b { font-weight: normal; }


-- modified at 13:14 Thursday 27th April, 2006

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.