Appdomain loading question
Tech-Archive recommends: Fix windows errors by optimizing your registry
I'm trying to load an assembly into a temporary AppDomain rather than
my main AppDomain, so that it can be unloaded later on. However, it's
also loading into my main AppDomain at the same time.
My code is:
AppDomain a = AppDomain.CreateDomain("TestDomain");
a.Load("AppDomainTestAssembly");
and in the Console window I get the following when the second line
executes:
'TestDomain': Loaded 'c:\visual studio
projects\appdomain\appdomain\bin\debug\appdomaintestassembly.dll',
Symbols loaded.
'AppDomainTest.exe': Loaded 'c:\visual studio
projects\appdomain\appdomain\bin\debug\appdomaintestassembly.dll',
Symbols loaded.
Which clearly means it's loading into both assemblies, yes? Is there a
reason why it's not just loading into TestDomain?
Cheers,
Andy D
.
Relevant Pages
- Re: AppDomain and Unload
... then the download needs to overwrite the DLL. ... Would you mind explainging what you mean by 'loading assembly into the ... > default appdomain, not the remote appdomain that you just created. ... > need to create a class that will proxy the loading/unloading of assemblies ... (microsoft.public.dotnet.languages.csharp) - Re: [Reflection] Can find types without loading assemblies?
... > I would need to iterate through all the assemblies I can find on mi pc and ... > iterate through types and interfaces. ... about it) you're stuck with loading the assembly in the normal way. ... AppDomain when you're finished with it. ... (microsoft.public.dotnet.framework) - Re: Eval code and AppDomains
... Do you know of any other way to Eval a String to get a Boolean result ... > "Joe Fallon" wrote in message ... Rick Strahl's article showed how to create a separate appdomain. ... >>> Based on how other assemblies work with an AppDomain that is correct. ... (microsoft.public.dotnet.languages.vb) - Re: Eval code and AppDomains
... Do you know of any other way to Eval a String to get a Boolean result ... > "Joe Fallon" wrote in message ... Rick Strahl's article showed how to create a separate appdomain. ... >>> Based on how other assemblies work with an AppDomain that is correct. ... (microsoft.public.dotnet.framework.aspnet) - Re: Preloading assemblies into an AppDomain I create
... application B (by using the AppDomain functionality). ... assemblies for an application and thus make that application start-up ... rather than just to execute application B directly. ... that AppDomain - but I'm still seeing slower performance. ... (microsoft.public.dotnet.languages.csharp) |
|