thank you both for your response.
Chirs, thanks for your tip. Actually I need to keep some spare space because when the user have a good amount of data and decides to send it to the server, my program generates an xml file in feature memory, then compreses (again, using feature memory) and send it. So if I let the user go very close to the limit the resulting xml and the compressed data will be larger and wont fit in the available space.


Miguel

Chris Tutty wrote:

From: "Robert Moynihan" <[EMAIL PROTECTED]>


Miguel Angel Sotomayor Hernandez wrote:


relevant. Is there a function, like VFSVolumeSize, but to determine the availbale space in storage ram? I need to let the user know when the device is running out of space and calculate how much data



You probably need to use MemHeapFreeBytes(), iterating through the individual heaps and tallying them up. Bob.



From memory heap 0 is dynamic and heap 1 is storage, but some
quick testing should tell you which is which.

Remember to keep a good safety margin because things start
getting nasty when storage gets tight - it's worth helping users
to keep some spare space if you can.

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