I am writing a conduit for my application and I am uploading some
large data pieces to the Palm Device. Sometimes the device will run
out of memory. How can I determine how much memory is available on the
device from the conduit.
I have a utility routine on the device for this purpose:
// return false if there is not enough palm memory left.
Boolean UtilIsThereEnoughMemory(int nKMemNeeded) // Mem Needed in K
{
ULong ulFreeBytes;
Err err = MemCardInfo (0,NULL,NULL, NULL,NULL, NULL,
NULL,&ulFreeBytes);
return (ulFreeBytes/1024 > nKMemNeeded);
}
Thanks,
Kevin.
Received: from mailer.symantec.com ([198.6.49.176]) by smtp-ima.symantec.com
with SMTP
(IMA Internet Exchange 3.1) id 006DDA63; Sat, 5 Jun 1999 09:38:16 -0700
Received: from seattle.3com.com (seattle.3com.com [129.213.128.97])
by mailer.symantec.com (8.8.8/8.8.8) with ESMTP id JAA24728;
Sat, 5 Jun 1999 09:37:23 -0700 (PDT)
Received: from new-york.3com.com (new-york.3com.com [129.213.157.12])
by seattle.3com.com (8.8.8/8.8.8) with ESMTP id JAA15584;
Sat, 5 Jun 1999 09:37:59 -0700 (PDT)
Received: from ls.3com.com ([192.156.136.82])
by new-york.3com.com (8.8.8/8.8.8) with SMTP id JAA00772;
Sat, 5 Jun 1999 09:37:51 -0700 (PDT)
Date: Sat, 5 Jun 1999 09:42:11 -0700
Message-Id: <006101beaf72$5cab1100$85a5fea9@chrisant1>
From: "Chris Antos" <[EMAIL PROTECTED]>
Subject: Re: PrefSetAppPreferences and version
To: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain;
Content-Transfer-Encoding: 7bit
Precedence: Bulk
X-LIST-URL: http://ls.palm.com
Reply-To: [EMAIL PROTECTED]
Errors-To: [EMAIL PROTECTED]