.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> .NET Framework >> Post New QuestionBookmark and Share Subscribe to Forum

What is unmanaged code?.How clr process it?

Posted By: venu     Posted Date: June 13, 2011    Points:5   Category :.NET Framework
Hi

What is unmanaged code?.How clr process it?

Regards
---------
Venu

Responses
Author: Sasi Prabhu             
Posted Date: June 13, 2011     Points: 20   

Unmanaged code is the type of code which will not execute in the CLR environment.
Memory manangement,garbage collection,security of CLR environment do not apply to Ummanaged code.

Thanks & Regards,
Sasi Prabhu.
Author: Gowthammanju             
Posted Date: June 13, 2011     Points: 20   

Hey

.NET supports two kind of coding



Managed Code

Unmanaged Code


Managed Code




The resource, which is with in your application domain is, managed code. The resources that are within domain are faster.


The code, which is developed in .NET framework, is known as managed code. This code is directly executed by CLR with help of managed code execution. Any language that is written in .NET Framework is managed code.


Managed code uses CLR which in turns looks after your applications by managing memory, handling security, allowing cross - language debugging, and so on.

Unmanaged Code



The code, which is developed outside .NET, Framework is known as unmanaged code.

Applications that do not run under the control of the CLR are said to be unmanaged, and certain languages such as C++ can be used to write such applications, which, for example, access low - level functions of the operating system. Background compatibility with code of VB, ASP and COM are examples of unmanaged code.

Unmanaged code can be unmanaged source code and unmanaged compile code.

Unmanaged code is executed with help of wrapper classes.

Wrapper classes are of two types: CCW (COM Callable Wrapper) and RCW (Runtime Callable Wrapper).


Wrapper is used to cover difference with the help of CCW and RCW.


Thanks & Regards,
GowthamManju
Chennai



Mark if the answer is true


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend