Garbage Collection and Manage Code?

L

Laser Lu

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

Cor

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
 
W

Wayne Wengert

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

Wayne
 
B

Bob Butler

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.
 
G

Gaurav Khanna [C# MVP]

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/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,734
Messages
2,569,441
Members
44,832
Latest member
GlennSmall

Latest Threads

Top