|
From: Chris M. <nin...@ho...> - 2001-12-10 17:16:09
|
Joerg -
It starts anew every five minutes and it terminates after 15 seconds. I
agree with your analysis on either the program or Windows not cleaning up
after program termination ... that is what I need to try to track down. I
don't want to have my network services people have to reboot the server
every week once my project gets up there ... at least I have control over
the machine I'm testing on.
I'm not sure how to start tracking this down. I've started looking at the
Nettle and the Bohem code to see how I'm supposed to use it.
Even though I'm not calling malloc() anywhere in my program, I realize that
just by using string functions I must be doing some sort of memory
allocations, if for no other reason than to store the strings in memory.
I would have hoped that deallocating strings would automatically occur, but
I know enough to know I should not make any assumptions until I learn more
about this entire issue.
Thanks for all your help!
Cheers,
Chris
----Original Message Follows----
From: Joerg Bruehe <jo...@sq...>
To: min...@li...
Subject: Re: [Mingw-users] Memory Leak Detection Tools and Tips (generic
question)
Date: Mon, 10 Dec 2001 13:50:21 +0100
Hi Chris,
Chris Marshall wrote:
>
> [...]
>
> I've created a small, simple program that I suspect of leaking memory ...
> the program runs once every five minutes for about 15 seconds.
Please explain:
- Is your pogram started anew every five minutes
and then terminates after about 15 seconds, OR
- Does it run permanently, without terminating,
and has activity (CPU load) peaks of 15 seconds every five minutes?
> When I
> checked on the machine, after two weeks, there is unexplainable memory
> consumption.
If the first description applies, it would mean that the program
leaves memory-consuming objects behind even after it terminated,
or that Windows does not clean up properly after program end.
Only the second description is what I would call a typical "memory
leak".
Regards,
Joerg Bruehe
--
Joerg Bruehe, SQL Datenbanksysteme GmbH, Berlin, Germany
(speaking only for himself)
mailto: jo...@sq...
_______________________________________________
MinGW-users mailing list
Min...@li...
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
|