Hi
If you use a Windows.Forms component in this assembly it is not possible
to unload it ...
When you load the assembly in a remote domain and use a control (for
example) in this assembly the assembly is loaded into the calling domain
too. Therefore when unloading the other domain you can use the stuff
from the assembly you wanted to unload with the remote domain.
If it is possible try to load the assembly with Load(byte[]) ... and
re-load them when you re-new the assembly. With this method you'll have
a memory leak but you're able to 'update' the GUI assembly.
btw. the IDEs do the same thing when you use custom controls in the
forms designer and recompile the project.
Regards
Mike
Hi,
I have GUI assembly which is loaded into a seprate Appdomain using AppDomain::Load method, after using it's function i unloaded the assembly by calling the AppDomain.UnLoad() method. But i can still use the UI components displayed earlier when i loaded the Assembly. How is this possible, it should not show up or throw some exception when i use the controls right?.
Please advice me how this behavior is possible even after i unloaded the assemblie's App Domain.
Any body Please help me.