Home All Groups Group Topic Archive Search About
Author
13 Feb 2006 11:52 AM
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

Author
13 Feb 2006 3:26 PM
Kris
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
Author
13 Feb 2006 4:01 PM
Boni
Hi Kris,
unfortunately AppDomain  is not enougth, since I mix native and managed
code.(And statics of native code are not replicated)
Show quoteHide quote
"Kris" <krishna.bi***@gmail.com> schrieb im Newsbeitrag
news:1139844379.036335.94570@g43g2000cwa.googlegroups.com...
> 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
>
Author
13 Feb 2006 9:31 PM
CMM
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
www.cmoya.com