Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is an un/managed DLL? What is un/managed code? [duplicate]

Could someone please explain to me what an un/managed DLL is? And what is un/managed code?

like image 208
Alex Avatar asked Sep 28 '10 15:09

Alex


2 Answers

When you code with .net you get some memory management, garbage collection etc, so it is called managed code. Older versions are unmanaged (for the memory is managed by the programmer)

And to keep things easy, calling from managed code to unmanaged code can be a trye pain.

like image 178
SoulWanderer Avatar answered Oct 10 '22 08:10

SoulWanderer


You will get a fair idea on managed and unmanaged code in following article -

http://www.developer.com/net/cplus/article.php/2197621/Managed-Unmanaged-Native-What-Kind-of-Code-Is-This.htm

like image 45
Sachin Shanbhag Avatar answered Oct 10 '22 09:10

Sachin Shanbhag