I still don't really 'get' this. Why can't an object just release its
resources in its Finalize method? Why when I create (eg) a Graphics
object does it become *my* responsibility to say when I've finished
with it, and explcitly say so? I thought one of the points of managed
memory / garbage collection was that users of objects didn't have to
worry about tracking object lifetime?
What's the point of me saying g.Dispose at the end of my drawing
routine, when this is going to happen when g dies anyway?
Why do I have to check with every object I use whether or not it
implements IDisposable, and if it does then track its lifetime myself?
How is this better or more reliable than manual reference counting?
Lots of question marks but only one question, really. Any insight
welcome!
--
Larry Lard
Replies to group please