w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
boost::interprocess shared memory segment function find() hangs at startup if the segment is already there

shouldn't you be using basic_string<char, ShmemAllocator> instead of string? your vector is actually container of containers - all should use shared allocator I think. (you'd need two, one for the string - of chars - second for vector - of your special string)

EDIT: there is a link at the end of that boost page named 'Container of Containers'.... read it! (I was just guessing and that page proves I was correct.)

LINKS:
Boost: Creating vectors in shared memory
Boost: Containers of containers





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.