Connecting Tech Pros Worldwide Forums | Help | Site Map

Running sub in a separate process

John
Guest
 
Posts: n/a
#1: Apr 29 '07
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



Matt F
Guest
 
Posts: n/a
#2: Apr 29 '07

re: Running sub in a separate process


Take a look a this link:

http://msdn2.microsoft.com/en-us/lib...s.process.aspx


"John" <John@nospam.infovis.co.ukwrote in message
news:%23YGzKwmiHHA.4904@TK2MSFTNGP05.phx.gbl...
Quote:
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
>

=?Utf-8?B?S2VycnkgTW9vcm1hbg==?=
Guest
 
Posts: n/a
#3: Apr 29 '07

re: Running sub in a separate process


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


"John" wrote:
Quote:
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
>
>
>
Cor Ligthert [MVP]
Guest
 
Posts: n/a
#4: Apr 29 '07

re: Running sub in a separate process


Make a dll from it

"John" <John@nospam.infovis.co.ukschreef in bericht
news:%23YGzKwmiHHA.4904@TK2MSFTNGP05.phx.gbl...
Quote:
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
>

Closed Thread