justinstenning / SharedMemory

C# shared memory classes for sharing data between processes (Array, Buffer and Circular Buffer)
https://www.nuget.org/packages/SharedMemory
Other
566 stars 118 forks source link

SharedArray - Windows Service #28

Closed pavelsommer closed 6 years ago

pavelsommer commented 6 years ago

Hi, I'm trying create SharedArray inside Windows Service and open it in desktop app and I am getting the Unable to find the specified file exception. It is somehow possible to resolve this task and share data between Windows Service and desktop app?

justinstenning commented 6 years ago

@pavelsommer try the following: https://stackoverflow.com/a/43802332/323899

From what it says, you can prefix the name of the mapped memory with Global/ and it will be available across sessions.