vis781
Well-known member
Ok i thought it might be nice to get some laid back opinions from the people on this forum about the garbage collector. Here is how i see it. It is there but not understood. It's frankly shrouded in cryptic articles from MS yet when we go to make classes we are supposed to be able to use related methods..
Finalize
Dispose
SupressFinalize
I have done much reading on the GC in the hope to understand just when it will collect, what generation it is collecting etc.. Lets face it it's actions are not random. It does a good job, but how are we to do a good job of creating classes that must be disposed of if we don't know just when it's going to be doing it's rounds. We are provided with a method for calling the garbage collector to reclaim memory and then advised not to use it. What gives? It plays a pivotal role in all our apps and can be the difference between having an app with good performance or poor performance.
I have met programmers who guess, i have met programmers who have spend hours watching the performance of their app trying to work out why it slows down in places. Is it just a given that we are subject to a whim of MS and something that we all should accept or does anyone truly understand what is, to my mind, the biggest mystery of .net.
Finalize
Dispose
SupressFinalize
I have done much reading on the GC in the hope to understand just when it will collect, what generation it is collecting etc.. Lets face it it's actions are not random. It does a good job, but how are we to do a good job of creating classes that must be disposed of if we don't know just when it's going to be doing it's rounds. We are provided with a method for calling the garbage collector to reclaim memory and then advised not to use it. What gives? It plays a pivotal role in all our apps and can be the difference between having an app with good performance or poor performance.
I have met programmers who guess, i have met programmers who have spend hours watching the performance of their app trying to work out why it slows down in places. Is it just a given that we are subject to a whim of MS and something that we all should accept or does anyone truly understand what is, to my mind, the biggest mystery of .net.