|
|
Sponsor |
Re: Memory leak: Windows DLL build only: msg#00054apache.logging.log4cxx.user
On Nov 24, 2004, at 4:24 PM, Malcolm Melville wrote: It appears to me that there is a memory leak from tchar.h under Windows in DLL mode. Each construct/destruct cycle of a StringBuffer causes a 4 byte leak to be reported by Purify and Leak Browser. Thanks for the report. The CVS version hasn't changed this YET, but an upcoming phase of the APR migration will radically change tchar.h and most of the internals that touch strings. StringBuffer is likely to be eliminated or rewritten, java.lang.StringBuffer is actually closer to std::basic_string than std::basic_ostream and the ostream has pretty substantial construction costs. I'm assuming the APR rewrite will probably replace this bug with other subtle (or not so subtle) bugs. It will be quite helpful if you are able to test the CVS version after the APR migration is complete (or at least more complete). I'll be running valgrind on Linux, but I don't have access to equivalent tools on Windows. Just to update the list, I've completed the code changes for the APR thread migration but am locking up on some of the unit tests and hope to resolve those shortly and commit the code. The two remaining phases would be to migrate to APR's XML parser support and the Unicode related changes.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Memory leak: Windows DLL build only, Malcolm Melville |
|---|---|
| Next by Date: | Using Log4j Chainsaw v2 with log4cxx, "Anton Müller" |
| Previous by Thread: | Memory leak: Windows DLL build only, Malcolm Melville |
| Next by Thread: | Using Log4j Chainsaw v2 with log4cxx, "Anton Müller" |
| 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.
|