How to: Getting data from another running exe works in the same AppDomain?

  • Thread starter Thread starter Nick
  • Start date Start date
N

Nick

Hi,
I have following question:

Two applications ( exe) work on the same computer in the same AppDomain.
For example: First is called " agent ", second is called "Client".
"Agent" load data from database into memory, ("Agent" fills ArrayList with
1000 record from database ) and works all time in the background.

How to:
It is possible to have access to this memory (allocated in "Agent" exe )
from "Client" exe. Both application work in the same AppDomain ?

Regards,
Nick
 
Nick,

To start, a process can have multiple application domains, but mutlipe
process cannot share the same application domain. If you have two different
executables, you have two processes and each has its OWN application domain.
Remember also that process are controlled by the operating system where as
application domains are controled by the .NET framework. Thus, what you
are really asking is:

How do I do inter-process communication?

Answer: Remoting, Sockets, Web Services, etc.

Google is your friend and there are lots of post on inter-process
communication. You can also look for examples on www.codeproject.com


Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top