what is the difference between managed code and non managed code?
Mallika
Select an image from your device to upload
Managed code as stated runs behind the CLR (Common Language Runtime). The code is called managed code because the objects created inside the application domain are "managed". In other words, they are garbage collected when they fall out of scope or when they need to be collected by the CLR. This means that the memory that the objects occupy is managed behind the seens. When the object is created the memory is allocated. When the object is garbage collected by the CLR, the memory is freed up. Managed code frees the user up from having to deal with these issues. In unmanaged code, you need to do your own memory management when creating objects on the heap. C#, F# and VB.NET are languages that run behind Managed Code. IronPython and IronRuby do as well. Visual C++ allows you to run in mixed mode with both managed and unmanaged code running in your application.
also see http://en.wikipedia.org/wiki/Managed_code