DOT NET garbage collector can only deals with memory resources or it also handles other resources used by orphaned object?
How CLR deals to free these other resources used by orphaned object.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The .Net GC manages only objects that are put up on managed heap, i.e. managed objects. These managed objects may inturn access unmanaged objects like DB connection or a file handle etc. The developer needs to free these resources by implementing IDisposable or Finalize, depending on your needs.
MSDN states that:
Here’s the link for the same: http://msdn.microsoft.com/en-us/library/system.object.finalize.aspx