locked
Managed and Unmanaged Code RRS feed

  • Question

  • User-1620825299 posted

    Does anyone can tell me the difference between Managed Code and Unmanaged Code with Example??????

    Monday, October 13, 2008 9:36 AM

Answers

  • User1485238302 posted

    Here is a good article about it:

    http://www.developer.com/net/cplus/print.php/2197621

    You will get plenty online.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, October 13, 2008 9:40 AM
  • User317007965 posted

    Hi

    In .NET all the applications you have developed are Managed code where as unmanaged code is when you write applications using native C or C++ compilers that compiles directly into machine code. 

    .NET Runtime provides the management services for Memory management (through Garbage collection) and Security whereas application built using unmanaged code does not have these services offered because they are accessing to the Windows API directly and not going through a common Runtime such as .NET Common Language Runtime. 

    I find this article to be very helpful on topics regarding managed, unmaged and native code.  You can refer to this article for more info: http://www.developer.com/net/cplus/print.php/2197621

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, October 13, 2008 10:00 AM

All replies

  • User1485238302 posted

    Here is a good article about it:

    http://www.developer.com/net/cplus/print.php/2197621

    You will get plenty online.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, October 13, 2008 9:40 AM
  • User-514194766 posted

    in managed code the memory is manage automaticlly while in unmanaged code you should manage memory by yourself  

    Monday, October 13, 2008 9:41 AM
  • User-1853252149 posted

    The nomenclature difference is that managed code is .NET, whether a web or Windows app.  Unmanaged code, also called Native Code, is non-.NET code.

    Jeff

    Monday, October 13, 2008 9:51 AM
  • User317007965 posted

    Hi

    In .NET all the applications you have developed are Managed code where as unmanaged code is when you write applications using native C or C++ compilers that compiles directly into machine code. 

    .NET Runtime provides the management services for Memory management (through Garbage collection) and Security whereas application built using unmanaged code does not have these services offered because they are accessing to the Windows API directly and not going through a common Runtime such as .NET Common Language Runtime. 

    I find this article to be very helpful on topics regarding managed, unmaged and native code.  You can refer to this article for more info: http://www.developer.com/net/cplus/print.php/2197621

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, October 13, 2008 10:00 AM
  • User-514194766 posted

    The nomenclature difference is that managed code is .NET, whether a web or Windows app.  Unmanaged code, also called Native Code, is non-.NET code.

    Jeff

    java too is managed

    Monday, October 13, 2008 10:22 AM