X
xenophon
I create a seperate AppDomain in code (AppDomain stuff is used in
ASP.NET and elsewhere in a WinForm app),and I want to make sure it
gets released properly. Right now I create it like this:
string binDir = AppDomain.CurrentDomain.BaseDirectory + "bin/" ;
AppDomain domain = AppDomain.CreateDomain(this.AppDomainName , null
, binDir , binDir , false);
ObjectHandle handle = domain.CreateInstance("PlaceIt" ,
"PlaceIt.StoreIt");
codegateway = (Codegateway)handle.Unwrap();
I want to explicitly release this resource when I'm done. Seting
handle and domain to null won't do it, right?
Thanks.
ASP.NET and elsewhere in a WinForm app),and I want to make sure it
gets released properly. Right now I create it like this:
string binDir = AppDomain.CurrentDomain.BaseDirectory + "bin/" ;
AppDomain domain = AppDomain.CreateDomain(this.AppDomainName , null
, binDir , binDir , false);
ObjectHandle handle = domain.CreateInstance("PlaceIt" ,
"PlaceIt.StoreIt");
codegateway = (Codegateway)handle.Unwrap();
I want to explicitly release this resource when I'm done. Seting
handle and domain to null won't do it, right?
Thanks.