Sunday, July 22, 2007

COM: Com Callable Wrapper



COM Callable Wrapper: CCW
• When a COM client calls a .net object, the CLR creates the managed object and a CCW for the object
• Unable to reference a .net object directly, COM client uses the CCW as a proxy for the managed object
• The runtime created only one CCW for the object, regardless of the number of COM clients requesting the CCW as a proxy for the managed object
• CCW are invisible to other classes running within the .net framework
• Their primary purpose is to marshal calls between managed and unmanaged code
• CCW also manage the object identity and object lifetime of the managed objects they wrap

No comments: