473,396 Members | 2,140 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

log4cxx / memory leaks / mfc / visual studio 2005

Hello

i'm having problems with log4cxx when using inside an MFC application
build with visual studio 2005. The Application starts and works
normaly, but while exiting, inside the DEBUG window of Visual Studio,
there are printed a lot of Memory Leaks errors:

Detected memory leaks!
Dumping objects ->
{1323} normal block at 0x00BB6F20, 4 bytes long.
....
{1107} normal block at 0x00BD4098, 32 bytes long.
Data: <l o g 4 c x x 6C 00 6F 00 67 00 34 00 63 00 78 00 78 00 20
00
....
repeat 319 times
....
Object dump complete.

If the Application runs in Release configuration, no memory leaks
occurs.
I tried the compiled log4cxx.dll in several combinations:
log4cxx version 0.9.7, from SVN, version 0.10.0
using VC6.0, VC8.0, with has.wchar_t true/false and logchar utf-8/wchar
....

But i never reached a working application with no memory leaks.

Have got anyone an idea where this defect exists and how it can be
solved?

With regards
Asterix

Nov 17 '06 #1
2 5853
On 17 Nov 2006 10:04:36 -0800, "asterixgallier" wrote:
>i'm having problems with log4cxx when using inside an MFC application
build with visual studio 2005. The Application starts and works
normaly, but while exiting, inside the DEBUG window of Visual Studio,
there are printed a lot of Memory Leaks errors:
I'd start with
http://dir.gmane.org/gmane.comp.apac...g.log4cxx.user
and search for 'leak'.
Nov 17 '06 #2
Roland Pibinger schrieb:
On 17 Nov 2006 10:04:36 -0800, "asterixgallier" wrote:
i'm having problems with log4cxx when using inside an MFC application
build with visual studio 2005. The Application starts and works
normaly, but while exiting, inside the DEBUG window of Visual Studio,
there are printed a lot of Memory Leaks errors:

I'd start with
http://dir.gmane.org/gmane.comp.apac...g.log4cxx.user
and search for 'leak'.
Ok thank you for your answer. The soltuion seems to be, to use alwasy
the release build of log4cxx.
(http://article.gmane.org/gmane.comp....4cxx.user/535/)

But if i set the release library of log4xx in the Debug Build of my
MFC-Application, the applications fails while loading. A messagebox
appears telling me:

Runtime Error!
Program: .....

R6034
An application has made an attempt to load the C runtime library
incorrectly.
Please contact the application's support team for more information

I suggest this happens because the log4cxx involves to load the release
versions of the msvcx80.dlls and the application tries to load the
debug versions. And both could not be loaded at the same time. Is my
assumption right? Is there a solution?

Bye
Asterix

Nov 17 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Steve Binney | last post by:
My code makes synchronous HttpWebRequest and HttpRebResponse calls. In VS 2003, I am getting memory leaks and event handle leaks. I am closing all streams and using "using"statements. I have...
12
by: Andla Rand | last post by:
Hi, I almost feel like giving up on developing on dotnet. I have done several threaded programs with the goal to parse webpages and I have tried WebClient and then WinSock. Both programs has...
2
by: Peter Strøiman | last post by:
Hi. I have a project that leaks :( I tried using the _crtDumpMemoryLeaks function, and I get the memory leaks written to the output window, but it doesn't show the correct source file. Instead...
0
by: Frank Lopez | last post by:
Does anyone know if Microsoft generated a whitepaper on this topic? Does anyone know what the solution is? (meaning, eliminate the leak problem -- I am seeing three memory leaks from...
4
by: cnickl | last post by:
VS 2005 / C# I’m writing an application that uses COM interop heavily and also some unsafe code. How can I test my app for memory leaks?
6
by: msosno01 | last post by:
log4cxx is an excellent library for logging with a huge amount features: http://logging.apache.org/log4cxx/manual/Introduction.html My friend persuaded me to install it. However, I have a problem...
2
by: Trev | last post by:
Is the file "Microsoft Visual Studio .NET 2003\VC7\INCLUDE\crtdbg.h" (specifically, the new operators) used in any way, shape or form in C# ? I am involved in writing an app that uses managed C++...
7
by: Joey | last post by:
VS2005 asp.net 2.0 C# Developing with File System/Cassini instead of IIS (publish to IIS every so often) Hello guys, I have a web app where I am using static variables on many pages to...
3
by: vrsathyan | last post by:
Hi.., While executing the following code in purifier.., std::vector<int> vecX; vecX.clear(); int iCount = 0; { int iVal;
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.