Hello, I got core dump when I try the following code. If the CORE_DUMP is defined, the core happens, if CORE_DUMP is not defined, there is no core. Does any body know the reason? It seems I can't use a global logger. Is there a way to use a global logger without core? #include <string> #include <sstream> #include <log4cxx/basicconfigurator.h> #include <log4cxx/logger.h> using namespace log4cxx; using namespace log4cxx::helpers; #ifdef CORE_DUMP LoggerPtr ptr; #endif int main( int argc, char * argv[] ) { ::log4cxx::BasicConfigurator::configure(); #ifndef CORE_DUMP LoggerPtr ptr; #endif ptr = Logger::getLogger("xxx"); } _________________________________________________________________ Get in touch in an instant. Get Windows Live Messenger now. http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_Refresh_getintouch_042008