Re: memory leak?
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Fri, 27 Jul 2007 14:06:18 -0400
It depends on what you mean by "near the exit of the program". The C debug runtime does
its check for memory leaks before static destructors are called, and I'm not sure where it
fits with respect to ExitInstance, but your report might be spurious. Without knowing the
details of where you put it, though, it is hard to tell.
joe
On Fri, 27 Jul 2007 17:53:56 -0000, wanwan <ericwan78@xxxxxxxxx> wrote:
In my program i have a char pointer where I use malloc() to allocateJoseph M. Newcomer [MVP]
230400 elements for use in video stream. Near the exit of the
application, I use free() to free the pointer.
in debug mode, Visual Studio still detected memory leak. Why?
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Follow-Ups:
- Re: memory leak?
- From: Doug Harrison [MVP]
- Re: memory leak?
- References:
- memory leak?
- From: wanwan
- memory leak?
- Prev by Date: Re: 64-Bit Scrolling
- Next by Date: Re: memory leak?
- Previous by thread: memory leak?
- Next by thread: Re: memory leak?
- Index(es):
Relevant Pages
|