Opened 12 years ago

Closed 11 years ago

Last modified 6 years ago

#5383 closed Bugs (worksforme)

Windows shared memory permitions problem

Reported by: Rui Pedro Fernandes <ruipfernandes@…> 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)

comment:1 by Ion Gaztañaga, 12 years ago

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?

in reply to:  1 comment:2 by Rui Pedro Fernandes <ruipfernandes@…>, 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 Ion Gaztañaga, 11 years ago

Resolution: worksforme
Status: newclosed

comment:4 by anonymous, 6 years ago

This is still not right in 1.62...

Note: See TracTickets for help on using tickets.