all groups > dotnet clr > april 2005 >
You're in the

dotnet clr

group:

Pass Objects across App Domains


Re: Pass Objects across App Domains Sean Hederman
4/7/2005 12:00:00 AM
dotnet clr:
[quoted text, click to view]

Yes, and fairly common for extensibiity.

[quoted text, click to view]

Have a look at Remoting. It allows you to either copy objects into other
AppDomains (by value) or expose them to other AppDomains (by reference)

[quoted text, click to view]

Pass Objects across App Domains arvind
4/7/2005 9:39:03 AM
Hi

Can someone please let me know if this is a feasible solution?

Lets say I have a class TEST which has a method called RUN().
The RUN() method needs to load 10 assemblies into a new App Domain, Create
Instances of Types which Implement certain interfaces, and Call methods on
each of this Instance which accepts an AutomationObject as a parameter.

The Automation Object is created in the RUN() method and should be available
in the new App Domain so that it could be passed to Methods in each object
which was created in the previous step. Is this Possible?

Also, is it possible to pass objects from one App Domain to another ?
Please advice

--
AddThis Social Bookmark Button