Hi,

I am developing some app dat loads images and calls new and delete operators
on some pointers.
My application does not report any memory leaks when debugging or give any
other errors.
However, after leaving my application running for a while, WinCE reports
that memory is running low and that I need to close some apps to free up
some memory.

So while it may not be a "memory leak", somehow it is eating more and more
memory.
I do not know how to debug this, other than to monitor the amount of free
memory while my application runs, and then disable parts of my application,
to see which portion is causing the memory hogging.

I forgot how to get the amount of free memory, and winCE dynamically adjusts
the amount of memory used for storage and for volatile memory for running
applications.. so this will make debugging a bit harder.
Anyway, how do I get the amount of free memory? And can anyone else make
suggestions as to how to figure out where memory is being hogged?

Lisa

Re: Memory Leak ? by Michael

Michael
Thu Oct 02 22:36:32 CDT 2003

You may want to try our Entrek TOOLBOX product. There is a tool in there
called CodeSnitch which will help you track this down. You can get info at
www.entrek.com/codesnitch.html.

--

Michael Salamone [eMVP]
Entrek Software, Inc.
www.entrek.com


"Lisa Pearlson" <no@spam.plz> wrote in message
news:%23CKEAxUiDHA.3104@TK2MSFTNGP11.phx.gbl...
> Hi,
>
> I am developing some app dat loads images and calls new and delete
operators
> on some pointers.
> My application does not report any memory leaks when debugging or give any
> other errors.
> However, after leaving my application running for a while, WinCE reports
> that memory is running low and that I need to close some apps to free up
> some memory.
>
> So while it may not be a "memory leak", somehow it is eating more and more
> memory.
> I do not know how to debug this, other than to monitor the amount of free
> memory while my application runs, and then disable parts of my
application,
> to see which portion is causing the memory hogging.
>
> I forgot how to get the amount of free memory, and winCE dynamically
adjusts
> the amount of memory used for storage and for volatile memory for running
> applications.. so this will make debugging a bit harder.
> Anyway, how do I get the amount of free memory? And can anyone else make
> suggestions as to how to figure out where memory is being hogged?
>
> Lisa
>
>



Re: Memory Leak ? by Doug

Doug
Thu Oct 02 22:40:01 CDT 2003

Hi Lisa,

Haven't tried it but people seem to be recommending Entrek tools for leak
checking see www.entrek.com/products.html

If you are working with bitmaps, an easy mistake to make is forgetting to
select a bitmap back out of a DC when finished (or other GDI objects for
that matter).

Cheers

Doug Forster

"Lisa Pearlson" <no@spam.plz> wrote in message
news:%23CKEAxUiDHA.3104@TK2MSFTNGP11.phx.gbl...
> Hi,
>
> I am developing some app dat loads images and calls new and delete
operators
> on some pointers.
> My application does not report any memory leaks when debugging or give any
> other errors.
> However, after leaving my application running for a while, WinCE reports
> that memory is running low and that I need to close some apps to free up
> some memory.
>
> So while it may not be a "memory leak", somehow it is eating more and more
> memory.
> I do not know how to debug this, other than to monitor the amount of free
> memory while my application runs, and then disable parts of my
application,
> to see which portion is causing the memory hogging.
>
> I forgot how to get the amount of free memory, and winCE dynamically
adjusts
> the amount of memory used for storage and for volatile memory for running
> applications.. so this will make debugging a bit harder.
> Anyway, how do I get the amount of free memory? And can anyone else make
> suggestions as to how to figure out where memory is being hogged?
>
> Lisa
>
>