【发布时间】:2011-03-28 10:47:10
【问题描述】:
我通过以下方式创建了一个 boost::message_queue:
namespace bipc = boost::interprocess;
...
try {
bipc::message_queue::remove("EDBA90AC-289D-4825-98D9-F85185041676");
// The below throws exception, no matter what's the name of the queue...
boost::shared_ptr<bipc::message_queue> mq(new bipc::message_queue(bipc::create_only, "EDBA90AC-289D-4825-98D9-F85185041676", 32767, 256));
...
} catch (std::exception &e) {
std::cout << "exception: " << e.what() << std::endl;
}
现在,我无法让它工作,因为每次出现以下异常时,mq-creation 都会抛出
异常:无效的字符串位置
这在 1.42 之前的 Boost 版本中可以正常工作,但现在不行了。 Boost 的 message_queue 的文档没有改变,所以没有任何帮助。我在这里做错了什么?
【问题讨论】:
标签: c++ boost message-queue