You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by "Wharry, Brian J." <br...@ngc.com> on 2008/03/29 02:44:17 UTC
Cannot create shared memory under Vista
Hi,
Under Windows XP we use apr_shm_create() with APR v.1.2.11 to create a
shared memory segment, but under Windows Vista those same calls return
error 5 (access violation). From researching the issue it appears to be
a limitation that Vista intentionally imposes. Only applications
running as services get the privilege of being in "session 0", which
seems to be the requirement for putting shared memory in the global
namespace.
The MSDN documentation does say that if you have the "Create Global"
privilege, you should be able to create it even if you are not in
session 0, so maybe this is just a bug in Vista. I don't know.
Do you guys have plans for a fix or work-around for APR?
Here's a link to an MSDN forum post about the issue:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=748596&SiteID=1
MSDN info on CreateFileMapping():
http://msdn2.microsoft.com/en-us/library/aa366537.aspx
Thanks,
Brian