Re: Exception Misconceptions
In article <4b2f3091$0$1113$4fafbaef@reader3.news.tin.it>, "io_x" <a@b.c.invalid> wrote:
"tanix" <tanix@mongo.net> ha scritto nel messaggio
news:hgjcdi$9c$1@news.eternal-september.org...
In article <4b2d02b2$0$1111$4fafbaef@reader2.news.tin.it>, "io_x"
<a@b.c.invalid> wrote:
"tanix" <tanix@mongo.net> ha scritto nel messaggio
news:hgg839$ot7$1@news.eternal-september.org...
In article
<3eacbb7a-4318-4fed-b71c-f5da24cfaf7f@s20g2000yqd.googlegroups.com>, James
Kanze <james.kanze@gmail.com> wrote:
Wasting weeks on cleaning up the memory leaks?
I have wasted MONTHS on trying to catch all the subtle memory
leaks in a sophisticated async based program because of some
network availability issues make you maintain all sorts of
queues, depending on user interaction, causing such headaches,
that you can not even begin to imagine from the standpoint
of memory leaks.
do you know, exist wrapper for malloc, that at end of the program
check if there are "memory leak" and report the result to the screen
Well, I AM getting the leak dumps at the end of the program.
The problem is that we have an issue of the same object being
passed around and saved into several queeues and it is not easy
to say who exactly did not do deallocation. There are several
customers.
i don't know for your difficult problem; my easy problem for leak was
"from one pointer address
print in the screen like leak
to find where in the code
was the problem"
That'd be cool if it was a realistic situation.
But things are much more involved. Long story.
if i remember well
i restart (run always in a debugger)
the program with the same input and trace
using the debugger who
reserve the memory of that pointer
when i know where is the code not free it,
all the rest was very easy
Yep. We know all that.
But thanx for the input.
--
Programmer's Goldmine collections:
http://preciseinfo.org
Tens of thousands of code examples and expert discussions on
C++, MFC, VC, ATL, STL, templates, Java, Python, Javascript,
organized by major topics of language, tools, methods, techniques.