Boost C++ Libraries: Ticket #9649: boost_interprocess, Win32: apps built with boost <1.54 remove temp files from apps >=1.54 (and vice versa) https://svn.boost.org/trac10/ticket/9649 <p> In boost 1.54, the format of the interprocess temporary file name changed (previously something like <code>20140205173952.047159</code>, now like <code>1391618455</code>). Unfortunately, this means that the "clean out previous boot session directories" recognizes the respective other filename as an "old" filename, even though it really isn't. Suppose you create an interprocess object with "Kernel or Filesystem" or persistence in an app A build against boost 1.54. You store something in it, but close it with the intention of re-opening it later (the desired persistence allows for that). But you happen to start an app B build against pre-1.54 in the meantime ... this cleans out the temp dir, incorrectly discarding the interprocess objects A created earlier. The attached patch changes the temp dir name if the "new" format is used. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9649 Trac 1.4.3 frank.richter@… Mon, 10 Feb 2014 17:47:52 GMT attachment set https://svn.boost.org/trac10/ticket/9649 https://svn.boost.org/trac10/ticket/9649 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_interprocess_fix_temp_dir_conflict.patch</span> </li> </ul> <p> Patch to fix different boost versions clearing out interprocess temp dir </p> Ticket frank.richter@… Mon, 10 Feb 2014 17:48:22 GMT summary changed https://svn.boost.org/trac10/ticket/9649#comment:1 https://svn.boost.org/trac10/ticket/9649#comment:1 <ul> <li><strong>summary</strong> <span class="trac-field-old">boost_interprocess, Win32: apps build with boost &lt;1.54 remove temp files from apps &gt;=1.54 (and vice versa)</span> → <span class="trac-field-new">boost_interprocess, Win32: apps built with boost &lt;1.54 remove temp files from apps &gt;=1.54 (and vice versa)</span> </li> </ul> Ticket Ion Gaztañaga Mon, 10 Feb 2014 21:34:48 GMT <link>https://svn.boost.org/trac10/ticket/9649#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9649#comment:2</guid> <description> <p> Thanks for the report. Apart from the patch, I think the library should offer a way to specify the name of the subdirectory. A simple configurable macro should do the trick. </p> </description> <category>Ticket</category> </item> <item> <author>frank.richter@…</author> <pubDate>Fri, 14 Feb 2014 09:28:21 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/9649 https://svn.boost.org/trac10/ticket/9649 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_interprocess_custom_tmp_dir.patch</span> </li> </ul> <p> Allow fully custom interprocess temp dir name </p> Ticket