Hi all
I have some trouble with threading and AppDomain ... :-((
Within a MDI Container Form,
I am loading a assembly into a AppDomain like this:
"System.AppDomain local_AppDomainPlugIn =
System.AppDomain.CreateDomain("SomeName");"
and calling Method remote Load like this:
"local_AppDomainPlugIn.DoCallBack(new
System.CrossAppDomainDelegate(local_InterfaceObjec t.remote_Load));"
The method remote_Load is showing a new form within the MDI Container Form.
When I call this (in MDI Container Load), it works fine.
Now I have new a timer which should do this calling,
but of corse the timer runs in another thread then MDI Container Form.
When I now call it, the new form loads but it is frozen ... :-(((
I am a little lost now because I do not know what is
the best way to do it ??
I know it would work like this:
"this.Invoke(new delegateLoad(local_InterfaceObject.remote_Load));"
but I need to have it in its own AppDomain.
Thank you much for any comments !!
Best regards
Frank Uray