Start Process

  • Thread starter Thread starter Boni
  • Start date Start date
B

Boni

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
 
Dear Boni,

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

Dim ad as AppDomain = AppDomain.CreateDomain("MyAppDomain")
Load your objects in the new AppDomain.


cheers,
Kris
 
Hi Kris,
unfortunately AppDomain is not enougth, since I mix native and managed
code.(And statics of native code are not replicated)
 
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."
 
Back
Top