Article:
  WinFX: An All-Managed API
Subject:   Great, but what is "managed" ?
Date:   2003-11-26 08:33:33
From:   anonymous2
"Managed" is a word that is used very often in .Net land, but seldom defined. If managed = .Net code, then yes, I would expect win32 is "unmanaged".


I would expect "managed" code to mean more than being .Net compatible - what does code management mean, or is this just doublespeak to make us think that win32 has mysteriously become obsolete ?


Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Great, but what is "managed" ?
    2003-12-13 00:26:29  anonymous2 [View]

    Managed code is like code that is being watched over by something else.

    For example, in .Net you can create a Bitmap object to manage a Bitmap picture then when you're finished with the Bitmap you can just ignore the object and the Garbage Collector will remove it when it goes out of Scope whereas in Win32 you have a HBITMAP handle that has to be manually controlled and cleaned up with DeleteObject API in GDI32 but if you don't delete it you get a memory leak when the program closes.

    In .Net Managed code basically makes everything safer, simpler and also increases security by seeing what the code is going to do before it does it.