Boost logo

Boost Users :

Subject: Re: [Boost-users] About log example in visual studio 2008
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2014-03-20 13:30:43


AMDG

On 03/19/2014 11:13 AM, Xiande Cao wrote:
> Here is where the program stops,
> In "formater_parser.cpp file
> const std::size_t len = end - begin;
> if (std::char_traits< char_type
>> ::length(constants::message_text_keyword()) == len &&
> std::char_traits< char_type
>> ::compare(constants::message_text_keyword(), begin, len) == 0)
> {
> m_AttrName = log::aux::default_attribute_names::message();
> }
> else
> {
> ???--> m_AttrName =
> attribute_name(log::aux::to_narrow(string_type(begin, end)));
> }
> }
>

I can't reproduce this. I've tried (with 1.55)
cd libs\log\example\basic_usage
b2 variant=debug,release link=static,shared threading=single,multi
msvc-9.0express msvc-11.0/architecture=x86/address-model=32,64

and everything seems to be okay. (I changed the target
type from exe to unit-test so that it would run the example)

> Here is the call stack,
>> cvsie.exe!boost::log::v2s_mt_nt5::`anonymous
> namespace'::formatter_parser<char>::on_attribute_name(const char *
> begin=0x000000013f259a81, const char * end=0x000000013f259a8a) Line 359 +
> <snip>
> The error shows:
> Unhandled exception at 0x000000013f146b63 in cvsie.exe: 0xC0000005: Access
> violation reading location 0x0000000000000070.
>

Looks like a null pointer. Can you figure out which variable
is null? It obviously isn't either of the arguments. What
about "this?"

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net