Boost C++ Libraries: Ticket #11695: Crash if boost managed_shared_memory is used on Windows https://svn.boost.org/trac10/ticket/11695 <p> The process executing below sample code crashes if two or more instances are executed simultaneously. If two instances are started at a gap of 1 second, then there is no crash. </p> <pre class="wiki">#include &lt;boost/interprocess/managed_shared_memory.hpp&gt; #include &lt;boost/interprocess/allocators/allocator.hpp&gt; #include &lt;boost/interprocess/containers/string.hpp&gt; #include &lt;string&gt; #include &lt;iostream&gt; #define RESERVED_BUFFER_SIZE_WRITE (8 * 0x0100000) namespace bip = boost::interprocess; //Typedefs of allocators and containers typedef bip::allocator&lt;char, bip::managed_shared_memory::segment_manager&gt; char_allocator; typedef bip::basic_string&lt;char, std::char_traits&lt;char&gt;, char_allocator&gt; char_string; int main() { bip::managed_shared_memory m_sharedMemUsage(bip::open_or_create, "MyBookkeeper", 2 * RESERVED_BUFFER_SIZE_WRITE); char_allocator alloc_inst3(m_sharedMemUsage.get_segment_manager()); for (int count = 0; count &lt; 100000; ++count) { char_string key_obect("AAAAAAAAAAAAAAAAAAAAAAA", alloc_inst3); } } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11695 Trac 1.4.3