P
Peter Strøiman
Hi.
I have a component that needs to run in its own execution environment and
with its own configuration file.
Therefore I create a new AppDomain at runtime. Let's say that my component
exists in "a.dll"
there I have
public class MyClass : MarshalByRefObject
{
public void test();
}
When I create my component, I write
AppDomain newDomain = AppDomain.Create( ... );
MyClass newObject = (MyClass)newDomain.CreateInstanceFromAndUnwrap( "a.dll",
"MyClass" )
newObject.test();
This all works perfectly fine.
My question is - now that I create an object that is a proxy for an object
in a different AppDomain, do I need to do anything special to clean up after
using the object.
Thanks in advance,
Pete
I have a component that needs to run in its own execution environment and
with its own configuration file.
Therefore I create a new AppDomain at runtime. Let's say that my component
exists in "a.dll"
there I have
public class MyClass : MarshalByRefObject
{
public void test();
}
When I create my component, I write
AppDomain newDomain = AppDomain.Create( ... );
MyClass newObject = (MyClass)newDomain.CreateInstanceFromAndUnwrap( "a.dll",
"MyClass" )
newObject.test();
This all works perfectly fine.
My question is - now that I create an object that is a proxy for an object
in a different AppDomain, do I need to do anything special to clean up after
using the object.
Thanks in advance,
Pete