Yup the Process.Start is what I use as well. For the short delay, you may
"None" <none@nowhere.com> wrote in message
news:ePjJj4LZFHA.3852@TK2MSFTNGP10.phx.gbl...
> Thanks for the info.
>
> Currently I am just trying using Process.Start to launch the host app from
> the client app and putting in a short delay with a splash screen and it
> works well. Very simple and clean. Eventually I'll do what you do in
> wrapping it up into a client-side DLL for reuse and encapsulation.
>
>
> "Daniel Moth" <dmoth74@hotmail.com> wrote in message
> news:uCMYAeEZFHA.3620@TK2MSFTNGP09.phx.gbl...
>> I have not encountered any clean solution to that and I too prefer the
>> COM
>> autolaunching of out-of-proc servers.
>>
>> You could have a client-side dll that does the launching of the host
> process
>> etc. The requirement now is that the client "touches" the dll before
>> going
>> anywhere near to the exe (or to be precise, the dll hosted by the exe).
>>
>> In fact, I have thin proxy objects in my client side dll that simply
> forward
>> the calls to the corresponding remoted object and hence the client apps
>> don't even know/reference the remoted dll - they do everything through
>> the
>> local dll and the out-of-proc business is transparent. There are other
>> benefits to that like translating chatty calls to chunky, validating
>> arguments in-proc etc.
>>
>> Cheers
>> Daniel
>> --
>>
http://www.danielmoth.com/Blog/ >>
>>
>> "None" <none@nowhere.com> wrote in message
>> news:%23W599fAZFHA.2884@tk2msftngp13.phx.gbl...
>> >I have a Windows Forms app. that acts as a Remoting host for my client
>> >apps.
>> > I don't really want to turn the host app into a Windows Service if I
> don't
>> > have to. What are my options for auto-launching the host app when a
>> > client
>> > needs it? (the host app already acts as a Singleton so only one
> instance
>> > will ever run)
>> >
>> > I see a couple of options, none very nice:
>> >
>> > 1) Have the client start the host application. The problem I see
>> > with
>> > this is that I have to build in logic in the client to detect that the
>> > host
>> > is started and ready.
>> >
>> > 2) The host application also acts as an OPC server. The clients could
>> > create an OPC connection to the server and Windows will launch the
>> > host.
>> > The problem with this is some of my client apps don't really need the
> OPC
>> > functionality so this is kind of a hack.
>> >
>> > 3) Create a Windows Service that is nothing but a listener for
>> > Remoting
>> > activation requests from the clients. The service will then launch the
>> > host
>> > app. Yuck.
>> >
>> > Please suggest other options! One nice thing about COM was that
>> > Windows
>> > will launch out-of-process servers for you. I wish Microsoft had done
> the
>> > same thing for Remoting.
>> >
>> >
>>
>
>