Start Process

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

    #1

    Start Process

    Dear all,
    is it possible to create and start a class in a new process namespace.
    What I need is something like:
    dim _p as new Process((new myclass).Start)

    But I can't find right syntax for that.
    Thanks a lot,
    Boni


  • Kris

    #2
    Re: Start Process

    Dear Boni,

    Dot Net applications would be created in a ApplicationDoma in. If you
    want to create your application in new application domain, you can use
    this.

    Dim ad as AppDomain = AppDomain.Creat eDomain("MyAppD omain")
    Load your objects in the new AppDomain.


    cheers,
    Kris

    Comment

    • Boni

      #3
      Re: Start Process

      Hi Kris,
      unfortunately AppDomain is not enougth, since I mix native and managed
      code.(And statics of native code are not replicated)
      "Kris" <krishna.bitla@ gmail.com> schrieb im Newsbeitrag
      news:1139844379 .036335.94570@g 43g2000cwa.goog legroups.com...[color=blue]
      > Dear Boni,
      >
      > Dot Net applications would be created in a ApplicationDoma in. If you
      > want to create your application in new application domain, you can use
      > this.
      >
      > Dim ad as AppDomain = AppDomain.Creat eDomain("MyAppD omain")
      > Load your objects in the new AppDomain.
      >
      >
      > cheers,
      > Kris
      >[/color]


      Comment

      • CMM

        #4
        Re: Start Process

        Sounds to me like what you're really looking for is simulating COM's ActiveX
        EXE's (where you could get an object running "out-of-process'). This isn't
        as intuitive as you would think in .NET. AFAIK, the only way to accomplish
        it is via Remoting... Remoting doesn't have to be "between machines!"

        I don't know if *easy* "Out-proc Servers" is finally a feature in .NET 2.0.
        I guess nobody misses it. I do....

        And Microsoft does too considering Visual Studio itself (even 2005) is still
        one big COM application composed of a zillion COM components. The day Visual
        Studio.NET is actually WRITTEN in .NET is the day you know .NET has matured
        to "First Class."


        --
        -C. Moya



        Comment

        Working...