Hi all,

I am using log4cxx on win32 platform and  build the log4cxx with MT option(
Runtime Library) within MS visual Studio 2005. The project default setting
is MD. All APR, APR-UTIL and LOG4CXX projects are set to be MT mode.

After the build, I get a crash in the LOG4CXX_DECODE_CHAR macro. The code is
very simple, looks like the below,

void testFun()
{
std::string src = "log4cxx-string-testing";
LOG4CXX_DECODE_CHAR(dest, src);
}

The crash happens when leave the function when trying to delete the
allocated memory. If the length of the src string is less than 7, it works.

Is this a problem?

-- 
Thanks and Regards,
Tom

Reply via email to