Click here to Skip to main content
13,295,192 members (70,268 online)
Rate this:
Please Sign up or sign in to vote.
See more:
What is the difference between Managed Code and UnMangaged code? a little bit with program will be more helpful for me.
Posted 23-Jan-13 20:56pm
Incorrect question. What is the difference between apple and Apple?
i}{ Raaz! }{i 24-Jan-13 2:00am
No in my opinion perhaps not, see this link:-

at 2nd para line:-
The Managed Code running in a Common Language Runtime (CLR) cannot be accessed outside the runtime environment as well as cannot call directly from outside the runtime environment. This makes the programs more isolated and at the same time computers are more secure . Unmanaged Code can bypass the .NET Framework and make direct calls to the Operating System. Calling unmanaged code presents a major security risk.

appears like there is difference between them.
PIEBALDconsult 24-Jan-13 2:09am
Were you given a take-home test?
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Please check out the below links.

1. Managed code and unmanaged code in .NET[^].
2. Managed, Unmanaged, Native: What Kind of Code Is This?[^].

1. Managed Code Vs Unmanaged Code?[^]. Go through all the answers.
2. Managed VS Unmanaged code[^].

Rate this: bad
Please Sign up or sign in to vote.

Solution 2

In managed code memory allocation and release is managed by underlying system (like JVM in java and CLR in .NET) whereas in Unmanaged code programmer need to do that (like destroying pointers in C).
Richard MacCutchan 21-Sep-13 6:12am
There is a lot more to it than just memory management.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.171207.1 | Last Updated 21 Sep 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100