Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: .NET
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 19:56pm
Comments
Sergey Alexandrovich Kryukov at 24-Jan-13 1:57am
   
Incorrect question. What is the difference between apple and Apple?
—SA
i}{ Raaz! }{i at 24-Jan-13 2:00am
   
No in my opinion perhaps not, see this link:-
 
http://vb.net-informations.com/framework/managed_code.htm
 
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 at 24-Jan-13 2:09am
   
Were you given a take-home test?
Rate this: bad
good
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).
  Permalink  
Comments
Richard MacCutchan at 21-Sep-13 6:12am
   
There is a lot more to it than just memory management.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Please check out the below links.
 
Articles
1. Managed code and unmanaged code in .NET[^].
2. Managed, Unmanaged, Native: What Kind of Code Is This?[^].
 
Discussions
1. Managed Code Vs Unmanaged Code?[^]. Go through all the answers.
2. Managed VS Unmanaged code[^].
 
Thanks...

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



Advertise | Privacy | Mobile
Web04 | 2.8.140926.1 | Last Updated 21 Sep 2013
Copyright © CodeProject, 1999-2014
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