April 2008
Intermediate to advanced
704 pages
17h 49m
English
Problem
You need to pass an object reference across multiple application domain boundaries; however, to conserve memory and avoid impacting performance, you want to ensure the CLR loads only the object's type metadata into the application domains where it is required (that is, where you will actually use the object).
Solution
Wrap the object reference in a System.Runtime.Remoting.ObjectHandle, and unwrap the object reference only when you need to access the object.
How It Works
When you pass a marshal-by-value (MBV) object across application domain boundaries, the runtime creates a new instance of that object in the destination application domain. This means the runtime must ...
Read now
Unlock full access