To get available storage memory:
ULong MemAvailable;
MemCardInfo(0,0,0,0,0,0,&MemAvailable);

I posted the secret to figuring out the size of your DB on the Palm a few
months ago.  You and try searching egroups (I think the  other archive site
has a better search engine).  Anyway, if you really, really can't find it, I
may be able to dig up the info.

D
-----Original Message-----
From: Mark Cameron <[EMAIL PROTECTED]>
To: Palm Dev Forum <[EMAIL PROTECTED]>
Date: Friday, August 20, 1999 11:49 AM
Subject: Checking for available storage space


>Hi. I'm looking for a quick and easy way to check how much total storage
>space is available on the Palm. I'm also looking for some sample code of a
>clean method for detecting/avoiding out of memory problems. I'm just
putting
>the finishing touches on my app, and I am not properly checking to make
sure
>there is enough room for my data.
>
>Cheers,
>Mark Cameron
>Techneos Systems
>
>P.S. Can anyone tell me why I seem to get unsubscribed from this list from
>time to time?
>
>
>
>


Reply via email to