Re: AppDomains, how to run another app from my current app...

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: EP (ep_at_newsgrouponly.com)
Date: 09/15/04


Date: Wed, 15 Sep 2004 08:20:48 -0500

yes, appdomains are really just a part of the same process, so if you exit
the process anything in the other appdomain will be destroyed.

If you want to load some winform dll in another process, I would recommend
you create a new exe that takes information at the command line about what
dll and class inside it to show. Then you can start this new process using
System.Diagnostics.Process.Start(...) with the proper arguments, then let
your application exit.

"Tirumala" <tirumala208@hotmail.com> wrote in message
news:OYI87humEHA.3632@TK2MSFTNGP09.phx.gbl...
> Hi Guys,
> I have to create a application which loads a external dll and shows
a
> form from the dll, my requirement is to show the FORM from the dll and
close
> my application but the Form from the dll should be available for the user.
> I thought using AppDomains would solve my problem, but I couldnt find
> any proper documentation anywhere. I was able to load and show the form
but
> when I close the current application everything is closed. So what i
> understand from this is when I close my current application the process
gets
> terminated and as the Appdomain is created under the same process it also
> gets terminated. So I will have to load the dll in another process and
close
> the current process. But I dont know how to do that......
>
> If somebody can give suggestions or point so some links would be very
> helpful.
>
> Thanks,
> Tirumala
>
>



Relevant Pages

  • Re: AppDomains or New Process
    ... Now Iam able to load a exe in another process and close my current app. ... show the form in the Dll? ... >> I thought using AppDomains would solve my problem, ...
    (microsoft.public.dotnet.framework)
  • Re: AppDomains or New Process
    ... should indeed launch a separate process to load the DLL and to show the ... "Tirumala" wrote in message ... I thought using AppDomains would solve my problem, ... I was able to load and show the form ...
    (microsoft.public.dotnet.framework)
  • Isolation von AppDomains
    ... Damit ich die DLL mehrfach ... über separate AppDomains auf die Schnittstelle ... zuzugreifen. ... sind die AppDomains zuwenig voneinander isoliert. ...
    (microsoft.public.de.german.entwickler.dotnet.framework)
  • Re: Isolation von AppDomains
    ... Damit ich die DLL ... mehrfach laden kann und somit gleichzeitig mit mehreren Geräten ... AppDomains sind ein _rein_ manged Konzept. ... Managed Code (z.B. statische ...
    (microsoft.public.de.german.entwickler.dotnet.framework)
  • RE: Communication between appdomains
    ... distinct AppDomains? ... AppDomains makes a certain change that invalidates some data in the DLL. ... > Based on my understanding, you will create two appdomains and they will ...
    (microsoft.public.dotnet.framework)