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.
如果在一个应用程序域或单元中创建RCW,然后将引用传递至另外一个应用程序域或单元,则会使用第一个对象的代理。
Consider a scenario in which managed code in an application domain is holding onto an RCW that represents a com component.
请考虑一个在其中应用程序域中的托管代码保持到表示COM组件的RCW上的方案。
A more serious error may occur if a call to the RCW is executing when the RCW is released.
如果在释放rcw时执行对该RCW的调用,则可能发生更严重的错误。
应用推荐