From: "Fruber Malcome" <[EMAIL PROTECTED]>
> I call MemHeapFreeBytes before and after the MemHeapCompact call and the
> numbers stay the same.
> for ( 0,0 ) freeP = 25,616, maxP = 17,178
> for ( 0,1 ) freeP = 7,854,848, maxP = 7,803,380
> 
> Is there a reason why this is not working?
> 
One possibility is that an unmovable chunk of memory is preventing
MemHeapCompact from improving things.  Something as simple
as a locked chunk (as I understand it) will limit the heap compaction
possible.

If you've got issues with memory one way to get a better view of
what's happening is to wrap the MemPtrNew, MemHandleNew,
MemPtrFree, etc calls with functions of your own that outputs a 
log.  This provides a picture of the pattern of memory allocation 
in your app.  It's not the whole picture but can provide insights.

Chris Tutty

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to