Cross process data/event

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I am trying to find a simple approach to share a simple data type (primitive) with two processes (two .exe files), but can’t work out. Any ideas are appreciated. Further, how to fire event across process

Thanks

f
 
fw said:
I am trying to find a simple approach to share a simple data type (primitive) with two processes (two .exe files), but can’t work out. Any ideas are appreciated. Further, how to fire event across process?

Usually I would advise named pipes but I don't know if they are included
in the framework. How about System.Net.Sockets? Create a socket
connection between the two apps and send the data back and forth.
 
Hi fw,

Look at .NET Remoting

--

Stoitcho Goutsev (100) [C# MVP]


fw said:
Hi,
I am trying to find a simple approach to share a simple data type
(primitive) with two processes (two .exe files), but can't work out. Any
ideas are appreciated. Further, how to fire event across process?
 
I guess remoting could work, but some overhead for this simple need. Memory
Mapped File (MMF) backed by swap file is ~easy to wrap in a class and then
just use a named mutex or event to sync the data.

--
William Stacey, MVP

fw said:
Hi,
I am trying to find a simple approach to share a simple data type
(primitive) with two processes (two .exe files), but can’t work out. Any
ideas are appreciated. Further, how to fire event across process?
 
No. But as I said, you can wrap a couple pinvoke apis and get things going.

--
William Stacey, MVP

Stoitcho Goutsev (100) said:
Is there any managed support for MMF?

--

Stoitcho Goutsev (100) [C# MVP]


William Stacey said:
I guess remoting could work, but some overhead for this simple need. Memory
Mapped File (MMF) backed by swap file is ~easy to wrap in a class and then
just use a named mutex or event to sync the data.

--
William Stacey, MVP


(primitive) with two processes (two .exe files), but can't work out. Any
ideas are appreciated. Further, how to fire event across process?
 
Back
Top