Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Could someone explain me the difference between managed and unmanaged code/executable?

Posted on 2011-09-23
10
312 Views
Last Modified: 2012-06-27
Hi there;

Could someone explain me the difference between managed and unmanaged code/executable?

Regards.
0
Comment
Question by:jazzIIIlove
  • 5
  • 2
  • 2
  • +1
10 Comments
 
LVL 7

Accepted Solution

by:
dimaj earned 200 total points
ID: 36590231
0
 
LVL 75

Assisted Solution

by:käµfm³d 👽
käµfm³d   👽 earned 200 total points
ID: 36593998
Crudely:

       Managed: .NET/Java
   Unmanaged: C/C++

When you think of "managed" code, think "garbage collector".
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 36594052
I got the confuision as does managed  concern Microsoft techs. only or concern java?

Regards.
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 75

Assisted Solution

by:käµfm³d 👽
käµfm³d   👽 earned 200 total points
ID: 36594244
I don't recall anyone ever actually mentioning the term "managed" when speaking about Java, but you can think of Java as such. As I said previously, the term "managed" refers to the fact that you have a garbage collector managing the deletion of dynamic memory for you. In a C/C++ environment, you must take care to delete any dynamic memory you allocate.
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 36717428
Ok, so how can one differ the executables (considering we have no idea regarding a GC is managing the code)

Regards.
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 36816600
I mean let's say u have an executable. How can you understand it's managed or unmanaged?

Regards.
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 36925828
Any update?

Kind regards.
0
 
LVL 7

Assisted Solution

by:dimaj
dimaj earned 200 total points
ID: 36926096
0
 
LVL 44

Assisted Solution

by:AndyAinscow
AndyAinscow earned 100 total points
ID: 36928975
>>How can you understand it's managed or unmanaged?

If .net is not installed then a managed application will not run.  Unmanaged has no requirement for .net runtimes to be installed.
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 36933808
Good and sensible :)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question