
1 Apr
2009
1 Apr
'09
4:34 p.m.
To do this, I first create a shared segment and then a dynamic area in it. like this:
struct transfer_buffer { void *buf; size_t bufsize; boost::interprocess::interprocess_mutex mutex; size_t dmember; }
I only quickly looked at your code, but I think that your void* pointer is invalid in the second process. Take a look at boost::interprocess::offset_ptr and use it in place of void*. ~Dan