Click here to Skip to main content
15,894,343 members
Please Sign up or sign in to vote.
1.00/5 (5 votes)
See more:
What is the difference between Managed Code and UnMangaged code? a little bit with program will be more helpful for me.
Posted
Comments
Sergey Alexandrovich Kryukov 24-Jan-13 1:57am    
Incorrect question. What is the difference between apple and Apple?
—SA
StackQ 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 24-Jan-13 2:09am    
Were you given a take-home test?

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...
 
Share this answer
 
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).
 
Share this answer
 
Comments
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900