[Boost-users] Shared memory access denied

296 views
Skip to first unread message

Carla Strembicke

unread,
Jun 15, 2010, 4:26:17 PM6/15/10
to Boost...@lists.boost.org

Using boost shared memory.  One process creates shared memory ( as an administrator on windows).

shared_memory_object(open_or_create, pShareName, read_write);

 

Another process ( not administrator) tries to open and map to shared memory. 

shared_memory_object(open_only, pShareName, read_write); <-this fails with access denied

 

 

 

Check permissions in on file and users only have a read permission.  Once those are changes ( after created by the process running as administrator) the file can then be opened and shared by the other process.  Is this how shared memory works.  I check the code and createfile has a file_share_read|write|delete option and is set to Generic_read|write. 

 

I have not been able to find any literature on a solution, but have seen the problem on the net.

 

Thanks


Carla Strembicke
Software Developer



SUBNET Solutions Inc.
www.SUBNET.com
Making Substations More Intelligent
T: 403.270.8885
F: 403.270.9631

#100, 4639 Manhattan Road SE, Calgary, Alberta, Canada; T2G 4B3
Follow SUBNET: Twitter | Facebook | Linkedln
Visit the all new SUBNET website at http://www.SUBNET.com

CONFIDENTIAL INFORMATION NOTICE: The information contained in this e-mail is privileged, confidential and intended solely for the use of the addressee named above. If the reader of this e-mail is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this e-mail is strictly prohibited. If you received this in error, please contact the sender and destroy all copies of this e-mail. Thank you.


Ion Gaztañaga

unread,
Jun 15, 2010, 5:16:33 PM6/15/10
to Boost User List
On 15/06/2010 22:26, Carla Strembicke wrote:
> Using boost shared memory. One process creates shared memory ( as an
> administrator on windows).
>
> shared_memory_object(open_or_create, pShareName, read_write);
>
> Another process ( not administrator) tries to open and map to shared
> memory.
>
> shared_memory_object(open_only, pShareName, read_write); <-this fails
> with access denied

Interprocess has this embarrasing permission limitations, but I still
don't know how to fix it. Please, fill a bug report on Boost.Trac so
that I can feel the pressure and work on it on my holidays.

Best,

Ion
_______________________________________________
Boost-users mailing list
Boost...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users

Reply all
Reply to author
Forward
0 new messages