What is Runtime callable wrapper?

Answer Posted / sivasubramanian.k

A Runtime Callable Wrapper (RCW) is a proxy object
generated by the .NET Common Language Runtime (CLR) in
order to allow a Component Object Model (COM) object to be
accessed from managed code. Although the RCW appears to be
an ordinary object to .NET clients, its primary function is
to marshal calls between a .NET client and a COM object.

For example, a managed application written in C# might make
use of an existing COM library written in C++ or Visual
Basic 6, via RCWs.

The runtime creates exactly one RCW for each COM object,
regardless of the number of references that exist on that
object. The runtime maintains a single RCW per process for
each object. If you create an RCW in one application domain
or apartment, and then pass a reference to another
application domain or apartment, a proxy to the first
object will be used.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you use viewstate?

550


What is a nested masterpage in asp.net 2.0? Can there be a master page inside a masterpage?

504


Which is better viewstate or session?

513


How do you do Client-side validation in .Net?

571


What is asp.net caching?

576






Explain cashing in asp.net.

523


How many types of session state management options available in asp.net?

534


What is the procedure to create the environment for asp.net? : asp.net mvc

514


Why asp.net mvc is better than asp.net? : Asp.Net MVC

495


How many web.config files can I have in an application?

537


What is a form tag?

503


How to disable cut, copy and paste in TextBox using jQuery in asp.net?

630


How can you register a custom server control to a web page?

540


Where is asp.net session stored?

473


Explain how cookies work.

596