logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

Re: Static initialization order (was Re: I degrade some softwares on my com: msg#00031

apache.logging.log4cxx.user

Subject: Re: Static initialization order (was Re: I degrade some softwares on my computer ...)

Jira is still down, so I went ahead and committed a patch that eliminates dependency on all non-local static variables (didn't mess with ThreadLocalStorage). I would appreciate any feedback especially from those who reported segmentation faults at startup.


On Oct 20, 2004, at 7:24 PM, Curt Arnold wrote:

Thanks, the traceback is consistent with attempting to configure before the static string DEBUG_KEY has been constructed. I've just completed a fairly wide-ranging patch that eliminates use of non-local static variables (see item 47 in Effective C++ for background) within log4cxx. However, the bug database has been having problems for a couple of hours and so I can't get a bug number to use in the commit. If it stays down another hour, I'll do the commit anyway.

The most commonly used non-local static variables are the log4cxx::Level::DEBUG and similar level "constants". I could not remove those without breaking almost all code that uses log4cxx, so I've left them in but added accessors, log4cxx::Level::getDebug(), etc that are safe for use at any time and changed all references to log4cxx::Level::DEBUG inside log4cxx to use the accessor.





<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive 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

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo