I'm using a modified version that we build from the port you mentioned.

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?

As a note, all of this testing is being done with the Emulator.

thanks - bill


"Regis St-Gelais" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
>
> "Fruber Malcome" <[EMAIL PROTECTED]> a �crit dans le message de
> news:[EMAIL PROTECTED]
> > In our application we do quite a lot with JPEG libraries and text that
> > creates and deletes many small chunks of memory.
>
> First of all, what JPEG library are you using???
> The only thing I was able to find is jcpalm, which is a port of the IJG
> (Independent JPEG Group) compression library to Palm OS.
>
>
> Second, you can defragment the memory using the api call:
>  MemHeapCompact(MemHeapID(0,0));
>  MemHeapCompact(MemHeapID(0,1));
>
> -- 
> Regis St-Gelais
> www.laubrass.com
> --
>
>
>



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

Reply via email to