Why not just try and launch the plugin, and fail gracefully if you don't
have enough memory?

"Joe" <[EMAIL PROTECTED]> wrote in message
news:84102@palm-dev-forum...
>
> --- Brian Smith <[EMAIL PROTECTED]> wrote:
> >
> > What I'm wondering is how to guage the size of the
> > dynamic heap, so I'll know whether to try and load the plug-in.  M
> >
>
> // the dynamic heap has index 0 on heap 0
> UInt32 free, max;
> MemHeapFreeBytes(MemHeapID(0,0), &free, &max);
>
> then
>   - free should be the total amount of free space
>   - max should be the maximum contiguous free space
>
> Use MemHeapCompact() if you need more contiguous space.
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.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