Boost C++ Libraries: Ticket #4619: Interprocess failed to find the tmp directory (windows platform) if the tmp directory stored in the registry points to a none-existing directory https://svn.boost.org/trac10/ticket/4619 <p> shmData = new shared_memory_object ( </p> <p> create_only, shmDataName, read_write </p> <p> ); </p> <p> This problem only happens in the windows platform (XP, VISTA, Windows 7, both 32 and 64 bits). </p> <p> When you try to "new" shared_memory_object, IPC will search system defined tmp directory. IPC tries to search the tmp folder location stored in the system registry first. If the registry does not have the tmp folder location (either being deleted accidentally or intentionally), IPC will continue to search the system environment variable "TMP" and "TEMP" for the tmp directory information. </p> <p> Now, if the registry "DID" have tmp folder information, but that folder "DOES NOT" exist. Then IPC load the tmp folder location and tries to create the interprocess directory in that "NON-EXISTING" tmp folder, then IPC will terminate and throw an exception instead of continue to execute the fail-safe options -- continue to search the tmp folder information from system environment variable, etc. </p> <p> It should be considered as a bug. </p> <p> In summary, when IPC loads the non-existing tmp folder from the registry and tries to create "interprocess" folder in that non-existing tmp folder, IPC should not just throw exception but to continue to execute fail-safe options: continue to search the system environment for "TMP" and "TEMP" as the same behavior of not finding tmp directory info from the registry. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4619 Trac 1.4.3 anonymous Thu, 02 Sep 2010 05:36:17 GMT keywords set https://svn.boost.org/trac10/ticket/4619#comment:1 https://svn.boost.org/trac10/ticket/4619#comment:1 <ul> <li><strong>keywords</strong> interprocess tmp directory registry added </li> </ul> Ticket Ion Gaztañaga Fri, 01 Apr 2011 20:05:39 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4619#comment:2 https://svn.boost.org/trac10/ticket/4619#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Fixed in Boost 1.47 </p> Ticket