Running sub in a separate process

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John

    #1

    Running sub in a separate process

    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

    #2
    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.in fovis.co.ukwrot e in message
    news:%23YGzKwmi HHA.4904@TK2MSF TNGP05.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
    >

    Comment

    • =?Utf-8?B?S2VycnkgTW9vcm1hbg==?=

      #3
      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 BackgroundWorke r
      component.

      Kerry Moorman


      "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
      >
      >
      >

      Comment

      • Cor Ligthert [MVP]

        #4
        Re: Running sub in a separate process

        Make a dll from it

        "John" <John@nospam.in fovis.co.ukschr eef in bericht
        news:%23YGzKwmi HHA.4904@TK2MSF TNGP05.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
        >

        Comment

        Working...