Freeing memory phobia
From: Martin Hart - Memory Soft, S.L. (memorysoft_at_infotelecom.es)
Date: 11/17/04
- Next message: Cowboy (Gregory A. Beamer) - MVP: "RE: UML editor"
- Previous message: Eiríkur Fannar Torfason: "Re: Run Setup scripts during installation"
- Next in thread: Jon Skeet [C# MVP]: "Re: Freeing memory phobia"
- Reply: Jon Skeet [C# MVP]: "Re: Freeing memory phobia"
- Reply: Mattias Sjögren: "Re: Freeing memory phobia"
- Reply: Lloyd Dupont: "Re: Freeing memory phobia"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 17 Nov 2004 17:46:21 +0100
I have a phobia about cleaning up after executing my code. Can someone in
the know help me :-)
-) If I add a delegate handler to a class, do I have to unplug it before
destroying the class for GC to work correctly?
-) Who actually calls Destroy if I implement IDisposable?
-) What is the difference between Destroy() and Destroy(bool) and who calls
each implementation and when?
-) Is it worth setting expired (variables I won't use again in a function)
variables to null to aid GC?
-) Can I or should I aid GC by using 'using' constructs or won't this help
if objects don't implement IDisposable?
Any help would be appreciated.
Regards,
Martin.
- Next message: Cowboy (Gregory A. Beamer) - MVP: "RE: UML editor"
- Previous message: Eiríkur Fannar Torfason: "Re: Run Setup scripts during installation"
- Next in thread: Jon Skeet [C# MVP]: "Re: Freeing memory phobia"
- Reply: Jon Skeet [C# MVP]: "Re: Freeing memory phobia"
- Reply: Mattias Sjögren: "Re: Freeing memory phobia"
- Reply: Lloyd Dupont: "Re: Freeing memory phobia"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|