Boost C++ Libraries: Ticket #3316: Access violation when trying to log from init_tests_func https://svn.boost.org/trac10/ticket/3316 <p> Using BOOST_ERROR() from test framework initialization is not possible, since it requires tests to be initialized, so I'm using the following macro to output errors from init_unit_test_func: </p> <div class="wiki-code"><div class="code"><pre><span class="n">LOG_FATAL_ERROR</span><span class="p">(</span> <span class="n">M</span> <span class="p">)</span> \ <span class="n">BOOST_TEST_LOG_ENTRY</span><span class="p">(</span> <span class="o">::</span><span class="n">boost</span><span class="o">::</span><span class="n">unit_test</span><span class="o">::</span><span class="n">log_fatal_errors</span> <span class="p">)</span>\ <span class="o">&lt;&lt;</span> <span class="p">(</span><span class="o">::</span><span class="n">boost</span><span class="o">::</span><span class="n">unit_test</span><span class="o">::</span><span class="n">lazy_ostream</span><span class="o">::</span><span class="n">instance</span><span class="p">()</span> <span class="o">&lt;&lt;</span> <span class="n">M</span><span class="p">)</span> </pre></div></div><p> It gives me memory access violation, when using human-readable log format. However, if I'm using XML format, it correctly writes the message to the log. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3316 Trac 1.4.3 Gennadiy Rozental Sat, 05 Sep 2009 08:50:39 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3316#comment:1 https://svn.boost.org/trac10/ticket/3316#comment:1 <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 trunk </p> Ticket Raffi Enficiaud Tue, 07 Jul 2015 07:59:26 GMT milestone changed https://svn.boost.org/trac10/ticket/3316#comment:2 https://svn.boost.org/trac10/ticket/3316#comment:2 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.59.0</span> </li> </ul> Ticket