Will the GC take care of all memory management issues (memory leaks) ? Is there any case where you don't want the GC to take control of some part of your code ?
What can and can't the Garbage Collector do?
java;programming languages;c#
It will take care of the classical memory management issues (allocated memory not getting deacllocated when no longer in use), though it is still possible to have memory leaks with a GC system - this will be more subtle and will occur when objects still hold references to other objects, even when they no longer need to.See the question Why can .NET not have memory leaks? and it's answers on StackOverflow.There may x. situations when you want full control over memory allocation, but frankly, the benefits of a GC system are such that you will normally not need to.