Home All Groups Group Topic Archive Search About

Running several of the same applications in the same process using AppDomain?

Author
29 Mar 2006 1:56 PM
peterbf
When we first start our application, it sets up an IPC channel. Later
when we want's to start the application again, it searches for an
existing channel and get an object from it if it exists
(Activator.GetObject(...)) and there by takes over the application
context which makes the application start up much faster than if it
starts up from scratch.

Using this method limits us to running only one application, because
static variables in the application would be shared through several
running applications.

We would like to be able to run several of the same application without
starting a new process every time.

We have been looking at AppDomain for this purpose, but from the
examples we have seen, it seems like it is mostly being used as a
solution for remote applications. But wee doesn't want to share data
between each AppDomain, we just want's to start the application fast.

Is this the correct way to do this, or is there another solution which
is suited better for our need?

AddThis Social Bookmark Button