Shared memory in C#
-
Hello, It's possile to implement shared memory in C# without resorting to P/Invoke or IJW (Win32 api) ? Cheers,Joao Vaz And if your dream is to care for your family, to put food on the table, to provide them with an education and a good home, then maybe suffering through an endless, pointless, boring job will seem to have purpose. And you will realize how even a rock can change the world, simply by remaining obstinately stationary.-Shog9
-
Hello, It's possile to implement shared memory in C# without resorting to P/Invoke or IJW (Win32 api) ? Cheers,Joao Vaz And if your dream is to care for your family, to put food on the table, to provide them with an education and a good home, then maybe suffering through an endless, pointless, boring job will seem to have purpose. And you will realize how even a rock can change the world, simply by remaining obstinately stationary.-Shog9
I don't think that there's a high level .NET API for this. If not using P/Invoke is a requirement, you can acomplish this by using a ServicedComponent that's called by the two applications needing to share the memory, but this is ugly. But even then, there would be IPC, not exactly memory sharing. My latest articles: Desktop Bob - Instant CP notifications XOR tricks for RAID data protection
-
I don't think that there's a high level .NET API for this. If not using P/Invoke is a requirement, you can acomplish this by using a ServicedComponent that's called by the two applications needing to share the memory, but this is ugly. But even then, there would be IPC, not exactly memory sharing. My latest articles: Desktop Bob - Instant CP notifications XOR tricks for RAID data protection
Daniel Turini wrote: ServicedComponent that's called by the two applications needing to share the memory, but this is ugly. But even then, there would be IPC, not exactly memory sharing. My thought was implementing a volatile cache system in memory ... Thanks. Cheers,Joao Vaz And if your dream is to care for your family, to put food on the table, to provide them with an education and a good home, then maybe suffering through an endless, pointless, boring job will seem to have purpose. And you will realize how even a rock can change the world, simply by remaining obstinately stationary.-Shog9