interprocess

Object Sharing between Applications?

梦想与她 提交于 2019-11-26 20:16:13
问题 Let's say I have a large data array updated 1000+ times per second. Another application wants to access and read the array in a short interval. Both applications are on the same machine. I have tried using WCF for interprocess communication, but serializing and sending the whole array (or a large object) thousands of times per second is unfeasible performance wise. Is there a way to directly access objects from different applications in c#? 回答1: There are a few IPC technologies you can use

What is the easiest way to do inter process communication in C#?

白昼怎懂夜的黑 提交于 2019-11-26 11:25:48
问题 I have two C# applications and I want one of them send two integers to the other one (this doesn\'t have to be fast since it\'s invoked only once every few seconds). What\'s the easiest way to do this? (It doesn\'t have to be the most elegant one.) 回答1: The easiest and most reliable way is almost certainly IpcChannel (a.k.a. Inter Process Communication Channel); that's what it's there for. You can get it up and running with a couple of lines of code and configuration. 回答2: You can try .NET