471,102 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Memory leak in server application without traceing to debug

My server app is transformed from environment of UNIX to Windows. Its
ran on the Apache Windows Server. The code is compiled pass by MSVC6
and ran well. but it has more memory leak.
when I am debugging the code with windbg, insertting mang break, and
step by step running code, the app do not appare memory leak at all. I
am confused.
if the app run without debugging, then the memory would increse by
watching task manager.

I think whether the app runs faster so that it dont duly free memory ?!
:) But I dont way to test.
Someone encounter similarity problem. Please give me some help.

THX.

Oct 25 '05 #1
2 1409
li*****@gmail.com wrote:
My server app is transformed from environment of UNIX to Windows. Its
ran on the Apache Windows Server. The code is compiled pass by MSVC6
and ran well. but it has more memory leak.
when I am debugging the code with windbg, insertting mang break, and
step by step running code, the app do not appare memory leak at all. I
am confused.
if the app run without debugging, then the memory would increse by
watching task manager.

I think whether the app runs faster so that it dont duly free memory ?!
:) But I dont way to test.
Someone encounter similarity problem. Please give me some help.

THX.


Often there are bugs which only show themselves in release mode, in
debug mode there is no bug. Usually this is because of uninitialised
variables. Look for those.

Try debugging the release version of the program by logging all attempts
to allocate and free memory. Try writing your own allocation routines to
help do this. Use a bit of imagination to find the bug instead of
relying on tools to do it for you.

john
Oct 26 '05 #2
Thx, I am glad about u wrote back my question.
I am trying it again with imagination. :-)

Oct 27 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by john.livermore | last post: by
3 posts views Thread by Giovanni Boschi | last post: by
9 posts views Thread by Anton | last post: by
3 posts views Thread by Florin | last post: by
2 posts views Thread by Rishan | last post: by
7 posts views Thread by Salvador | last post: by
30 posts views Thread by MAG1301 | last post: by
22 posts views Thread by Peter | last post: by

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.