[interprocess] user application can't attach shared memory created by Windows service

Hi, I'm using version 1.41 in a Windows Server 2008 host. If I run an application as a service (in fact launching it with srvany) that creates a named managed_windows_shared_memory and then execute a user application that tries to attach the shm, the later cannot succeed to attach - error is: "The system cannot find the file specified". On the other hand, if the shared memory is of type managed_shared_memory then all runs fine. Couldn't this indicate that in the windows approach the file mapping object should be created with more global security and access rights? Thanks, Rui

On 27/05/2010 19:36, Rui Pedro Fernandes wrote:
Couldn't this indicate that in the windows approach the file mapping object should be created with more global security and access rights?
It could be. Or maybe for sharing the memory between user and system, the mapping name should fulfill some requirements. I'll need to investigate this, I don't have time to look into this these days but, I'll definitely needs to rewrite permission issues for Windows. There are too many bugs around ;-( Best, Ion

Thanks for the quick response.
I'll be waiting for the fix.
Regards,
Rui
2010/5/27 Ion Gaztañaga
On 27/05/2010 19:36, Rui Pedro Fernandes wrote:
Couldn't this indicate that in the windows approach the file mapping object should be created with more global security and access rights?
It could be. Or maybe for sharing the memory between user and system, the mapping name should fulfill some requirements. I'll need to investigate this, I don't have time to look into this these days but, I'll definitely needs to rewrite permission issues for Windows. There are too many bugs around ;-(
Best,
Ion
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Ion Gaztañaga
-
Rui Pedro Fernandes