Executing lenghty code in another process

  • Thread starter Thread starter Victor Rosenberg
  • Start date Start date
V

Victor Rosenberg

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
 
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.
 
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)?
 
Back
Top