Garbage Collection and Manage Code?

  • Thread starter Thread starter Laser Lu
  • Start date Start date
L

Laser Lu

What doese Garbage Collection mean? And what is Managed Code?
Any links to relevant articles or resources would be appreciated!
 
Hi Laser,

You can go to this link (not the microsoft normal link) and type in
"managed code" in the search

http://msdn.microsoft.com/

The garbage collection is a collection from unused objects which is cleaned
by the framework time by time.

I hope this helps,

Cor
 
Those terms usually apply to the .NET environment. You might want to post
this question in one of those NGs.

Wayne
 
Wayne Wengert said:
Those terms usually apply to the .NET environment. You might want to
post this question in one of those NGs.

It is; it's cross-posted to both dotnet and VB 'classic' groups so the
responses are a mixture of both worlds.
 
Hi!

Simply put, Managed Code refers to the code that executes within the
confines and control of the Common Language Runtime (CLR), the Virtual
Machine for the .NET Framework. And one of the benefits of using managed
code is that you can allocate memory for the objects created by your
application, without worrying about releasing that memory. The CLR is
intelligent enough to decide when an object, allocated by your application,
has become garbage (i.e., no longer being used by your application), and it
will automatically collect all the garbage objects and release the
associated memory. This process is termed as Garbage collection.

The following articles by Jeffrey Richter will help you understand it
better:

http://msdn.microsoft.com/msdnmag/issues/1100/GCI/GCI.asp
http://msdn.microsoft.com/msdnmag/issues/1200/GCI2/GCI2.asp

--
Regards,
Kumar Gaurav Khanna
-----------------------------------------------------------------
Microsoft MVP - C#/.NET, MCSE Windows 2000/NT4, MCP+I
WinToolZone - Spelunking Microsoft Technologies
http://www.wintoolzone.com/
OpSupport - Spelunking Rotor
http://opsupport.sscli.net/
Bangalore .NET Users' Group
http://groups.msn.com/bdotnet/
 
Back
Top