Share object between two processes in C#
-
25-06-2021 - |
Frage
I'm looking for a way to share object between two processes. First process should create the object and the second should only copy it without making any change in the original.
Does anyone have an idea how to do that?
Lösung
You don't need shared memory : the first process can expose a WCF (or .NET Remoting) service, and the second process will be able to call it. Make sure your object is serializable.
Andere Tipps
in .net2.0 or lower you can not use wcf, but you can use some library like wcf, for example ICE Framework, you can download and read about it, on below link ICe Framewrok
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow