logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zhou Tao <zhoutao...@gmail.com>
Subject LOG4CXX_DECODE_CHAR Crash on windows
Date Fri, 13 Nov 2009 09:56:47 GMT
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";

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,

View raw message