|
|
| <prev next> |
Sponsor |
Problem on Windows: msg#00000apache.logging.log4cxx.user
I am getting an error on termination of a program using log4cxx 0.9.7 under Windows VC6.0. It appears that the destructor for the logger object is causing a memory error. Here is the code: ---------------------------------------------- #include "log4cxx/logger.h" #include "log4cxx/basicconfigurator.h" #include "log4cxx/helpers/exception.h" using namespace log4cxx; using namespace log4cxx::helpers; LoggerPtr logger(Logger::getLogger("MyApp")); int main() { int result = EXIT_SUCCESS; try { BasicConfigurator::configure(); LOG4CXX_INFO(logger, "Starting test."); } catch (Exception&) { result = EXIT_FAILURE; } return 0; } ------------------------------------------------------------------- I see the message from the logger on the console OK, but then get a dialog box with the following text: The instruction at "0x55901a9d" referenced memory at "0x003f3e50". The memory could not be "read". Click on OK to terminate the program Any ideas? Thanks, Bob
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Next by Date: | Access violation when compiled with msvc 6.0, Justin Chen |
|---|---|
| Next by Thread: | Access violation when compiled with msvc 6.0, Justin Chen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home | sitemap
| advertise | OSDir is
an inevitable website.
|