Home All Groups Group Topic Archive Search About

Running sub in a separate process

Author
29 Apr 2007 2:38 PM
John
Hi

Is there a way to run a sub in a separate synchronous or asynchronous
process? One of the reason I would like to do that is I do not want this
process to effect the main app and also to cleanup the process resources
completely after it end.

Thanks

Regards

Author
29 Apr 2007 3:13 PM
Matt F
Take a look a this link:

http://msdn2.microsoft.com/en-us/library/system.diagnostics.process.aspx


Show quoteHide quote
"John" <John@nospam.infovis.co.uk> wrote in message
news:%23YGzKwmiHHA.4904@TK2MSFTNGP05.phx.gbl...
> Hi
>
> Is there a way to run a sub in a separate synchronous or asynchronous
> process? One of the reason I would like to do that is I do not want this
> process to effect the main app and also to cleanup the process resources
> completely after it end.
>
> Thanks
>
> Regards
>
Author
29 Apr 2007 3:52 PM
Kerry Moorman
John,

I don't know about running a sub in a separate process, but you can run it
in a separate thread. An easy way to do that is to use the BackgroundWorker
component.

Kerry Moorman


Show quoteHide quote
"John" wrote:

> Hi
>
> Is there a way to run a sub in a separate synchronous or asynchronous
> process? One of the reason I would like to do that is I do not want this
> process to effect the main app and also to cleanup the process resources
> completely after it end.
>
> Thanks
>
> Regards
>
>
>
Author
29 Apr 2007 10:24 PM
Cor Ligthert [MVP]
Make a dll from it

Show quoteHide quote
"John" <John@nospam.infovis.co.uk> schreef in bericht
news:%23YGzKwmiHHA.4904@TK2MSFTNGP05.phx.gbl...
> Hi
>
> Is there a way to run a sub in a separate synchronous or asynchronous
> process? One of the reason I would like to do that is I do not want this
> process to effect the main app and also to cleanup the process resources
> completely after it end.
>
> Thanks
>
> Regards
>