MDKDevelopers
asked on
Garbage collection in .NET
I have a question how garbage collection works in .NET. I have a website, which calls a class and then that class calls another class. Website1 --> class1 --> class2. If class2 throws an exception which is caught by Website1 and in the Finaly statement I set class1 = Nothing, would this clean up any and all objects tha were initialized up to the exception? I would like your answer and maybe a link to some good article about this topic.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The link to the article provided by the user that you've accepted the answer is the same as mine, and I posted first!
jppinto
jppinto
ASKER
jppinto,
Please read my entire question, I believe there is a statement "I would like your answer and maybe a link to some good article about this topic." I was looking for an Expert's opinion and not just a blind link to articles.
Please read my entire question, I believe there is a statement "I would like your answer and maybe a link to some good article about this topic." I was looking for an Expert's opinion and not just a blind link to articles.
http://www.csharphelp.com/archives2/archive297.html
http://www.codeproject.com/KB/dotnet/garbagecollection.aspx
http://www.hitxp.com/comp/pro/dotnet/220705.htm
Hope they help you.
jppinto