M
Mike C#
Hi all, quick question. I have an application I'm running. There are some
"fatal" error conditions that could occur during processing, and I want to
exit immediately if one comes up. When I put an exit() function call in my
code I get a message like this:
Detected memory leaks!
Dumping objects ->
{177} normal block at 0x003864E8, 32 bytes long.
Data: <c:\polling\inbou> 63 3A 5C 70 6F 6C 6C 69 6E 67 5C 69 6E 62 6F 75
With about 20 lines after the "Dumping objects->" line. If I put an exit()
function call immediately before the return statement in main(), it gives me
a message like the above but with only two lines after "Dumping objects->".
Finally, if I remove all exit() function calls and let it run all the way
through to the return in main(), no memory leak is reported and it
terminates normally. My question is should I be worried about this? And if
so, what can I do about it? The "memory leak" only seems to appear when I
terminate the code early, and does not appear as bad if I terminate later in
the application. Any ideas are welcome.
Thanks!
"fatal" error conditions that could occur during processing, and I want to
exit immediately if one comes up. When I put an exit() function call in my
code I get a message like this:
Detected memory leaks!
Dumping objects ->
{177} normal block at 0x003864E8, 32 bytes long.
Data: <c:\polling\inbou> 63 3A 5C 70 6F 6C 6C 69 6E 67 5C 69 6E 62 6F 75
With about 20 lines after the "Dumping objects->" line. If I put an exit()
function call immediately before the return statement in main(), it gives me
a message like the above but with only two lines after "Dumping objects->".
Finally, if I remove all exit() function calls and let it run all the way
through to the return in main(), no memory leak is reported and it
terminates normally. My question is should I be worried about this? And if
so, what can I do about it? The "memory leak" only seems to appear when I
terminate the code early, and does not appear as bad if I terminate later in
the application. Any ideas are welcome.
Thanks!