"trevor" <[EMAIL PROTECTED]> wrote in message
news:44982@palm-dev-forum...
>
> Does anyone know what the maximum buffer size is that you can get from
> MemPtrNew()? I would like to get a buffer as big as 512K.
MemPtrNew can only allocate 64K at a time. Also, since it allocates
from the dynamic heap, the maximum memory you could ever allocate would
be around 200K on a 8MB Palm OS 3.5 device.
You can get access to more memory, if you're running at least Palm OS
3.5. The API to use is FtrPtrNew(). However, the memory you get from
these calls is read-only, with writes done through calls to DmWrite.
This memory is also persistant between program runs, only deallocated
when you explicitly free it or you soft-reset your device.
--
Ben Combee, [EMAIL PROTECTED]
Techwood Broadcasting Foundation, Austin Bureau
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/