#5383 closed Bugs (worksforme)
Windows shared memory permitions problem
Reported by: | Owned by: | Ion Gaztañaga | |
---|---|---|---|
Milestone: | To Be Determined | Component: | interprocess |
Version: | Boost 1.45.0 | Severity: | Problem |
Keywords: | Cc: |
Description
OS: Windows 7, Windows Server 2008
managed_windows_shared_memory created by a process running as service, with permissions instance set to unrestricted.
A process run with an administrator user isn't able to attach the shared memory. Error: "The system cannot find the file specified."
same code works fine under the same scenario, on a Windows XP platform.
Change History (4)
follow-up: 2 comment:1 by , 12 years ago
comment:2 by , 12 years ago
Replying to igaztanaga:
The documentation says:
Sharing memory between services and user applications is also different. To share memory between services and user applications the name of the shared memory must start with the global namespace prefix
"Global\\"
. This global namespace enables processes on multiple client sessions to communicate with a service application. The server component can create the shared memory in the global namespace. Then a client session can use the "Global\" prefix to open that memory.Are you using Global prefix?
No, that's the problem. I found that same information last friday when I was trying to solve the issue and was going to post it here. Thanks for your concern. Yours, Rui
comment:3 by , 11 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
The documentation says:
Sharing memory between services and user applications is also different. To share memory between services and user applications the name of the shared memory must start with the global namespace prefix
"Global\\"
. This global namespace enables processes on multiple client sessions to communicate with a service application. The server component can create the shared memory in the global namespace. Then a client session can use the "Global\" prefix to open that memory.Are you using Global prefix?