Connecting Tech Pros Worldwide Forums | Help | Site Map

Executing lenghty code in another process

Victor Rosenberg
Guest
 
Posts: n/a
#1: Apr 16 '07
Hey guys
How can I painlessly execute some heavy processing in another process,
so the main application may still be closed, but the processing will
continue until its done?
Also, how can progressing events be implemented in this scenario?

Thanks in advance


Nicholas Paldino [.NET/C# MVP]
Guest
 
Posts: n/a
#2: Apr 16 '07

re: Executing lenghty code in another process


Victor,

Well, you will have to actually write the code for the other process.
Have you considered maybe writing a service?

Once you are sure that the other process is running (whether it is a
stand-alone app that you write, or a service that is always running), you
will need to use some inter-process communication to tell the other process
to do something, and to get notification back from the other process. For
this you can use remoting (I wouldn't recommend it, honestly) or WCF (the
preferred choice).

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com

"Victor Rosenberg" <Victor.Rosenberg@gmail.comwrote in message
news:1176751704.761779.76030@l77g2000hsb.googlegro ups.com...
Quote:
Hey guys
How can I painlessly execute some heavy processing in another process,
so the main application may still be closed, but the processing will
continue until its done?
Also, how can progressing events be implemented in this scenario?
>
Thanks in advance
>

Ignacio Machin \( .NET/ C# MVP \)
Guest
 
Posts: n/a
#3: Apr 16 '07

re: Executing lenghty code in another process


Hi,

Take a look at MSMQ it's intended for these kind of situations.

Do you need communication with the remote process (like for getting the
progress)?

"Victor Rosenberg" <Victor.Rosenberg@gmail.comwrote in message
news:1176751704.761779.76030@l77g2000hsb.googlegro ups.com...
Quote:
Hey guys
How can I painlessly execute some heavy processing in another process,
so the main application may still be closed, but the processing will
continue until its done?
Also, how can progressing events be implemented in this scenario?
>
Thanks in advance
>

Closed Thread