I tried:
m_messageQueue = boost::shared_ptrboost::interprocess::message_queue(
new boost::interprocess::message_queue (
boost::interprocess::open_or_create
,name.c_str() //name
,numElements //max message number
,sizeof(Message) //max message size
,boost::interprocess::permissions(777)
));
And got the same results as before with Permission denied. Am I doing
something wrong?
Thanks,
Matt
2011/9/29 Ion Gaztañaga
El 29/09/2011 18:07, Matt Fair escribió:
Hello,
I ran across this problem when I moved my code to another system. Not sure if this is the right list to post this, but I've been having trouble debugging this as all of my attempts have lead me to dead ends.
The container is built with default permissions (0644 in unix), you'd need provide you own permissions in message queue constructor instead of the default permissions() parameter.
Best,
Ion _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users