Boost C++ Libraries: Ticket #3319: environment.hpp https://svn.boost.org/trac10/ticket/3319 <p> Hi there, in the function </p> <p> inline environment::environment(void) </p> <p> in the BOOST_PROCESS_WIN32_API defnition you supply the wrong pointer to the <a class="missing wiki">FreeEnvironmentStrings</a>() function. Currently you're passing the pointer that was incremented to process the variable. You should be providing the original pointer to the heap. </p> <p> Should be: </p> <blockquote> <p> TCHAR* es = ::<a class="missing wiki">GetEnvironmentStrings</a>(); TCHAR* es2 = es; </p> </blockquote> <blockquote> <p> <em> do your iterating with es </em></p> </blockquote> <blockquote> <p> ::<a class="missing wiki">FreeEnvironmentStrings</a>(es2); </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3319 Trac 1.4.3 Steven Watanabe Thu, 06 Aug 2009 17:03:46 GMT owner set https://svn.boost.org/trac10/ticket/3319#comment:1 https://svn.boost.org/trac10/ticket/3319#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">bschaeling</span> </li> </ul> <p> The trac system should really only be used for accepted libraries. </p> Ticket Marshall Clow Sun, 06 Jun 2010 15:28:05 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3319#comment:2 https://svn.boost.org/trac10/ticket/3319#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">invalid</span> </li> </ul> Ticket