By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,513 Members | 1,650 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,513 IT Pros & Developers. It's quick & easy.

Memory leak in server application without traceing to debug

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.