I've been able to do this on the Palm but never tried it with a conduit.
Its been awhile...
Each db has a header, and each chunk has overhead(which is OS dependent) In
OS2 its 6 bytes, OS3 its 8
so your db would be = header size + #records * (record size + record chunk
overhead) Not to mention memory has a minimum allocated size of either 2 or
4 bytes (I can't remember which). So if your structure/data is 5 byes your
allocated size might be 6 or 8. Maybe Bob or Dave could chime in with the
actual numbers. I don't know if anything has changed for OS 3.5.
I can't find the actual numbers I used, you should be able to search egroups
a few months back to get that actual sizes.
D
-----Original Message-----
From: Sudipta Ghose <[EMAIL PROTECTED]>
To: Palm Developer Forum <[EMAIL PROTECTED]>
Date: Wednesday, January 26, 2000 11:37 PM
Subject: How to calculate the required free space in Palm?
>Hi All,
>
>I want to transfer data in to several databases in the Palm. The databases
>will be created by the conduit during HotSync. What I want to do is to
>calculate the amount of free RAM required in the Palm, before I start the
>data transfer. I know the total size of the data in Palm format. I tried
>using SyncReadSingleCardInfo to get the amount free RAM in Palm. However,
>even though the amount free RAM returned by the SyncReadSingleCardInfo is
>greater than the total size of the data, the conduit fails due to lack of
>memory, while writing the records to Palm. Is there a formula to calculate
>the amount of space required in Palm, given the no, of records and total
>size of the records? I assume I have to include the database overheads, but
>is there anything else I am missing? I have tried writing PDBs in the PC
and
>then use the PDB size to calculate the memory required in Palm. But it
>didn't work out.
>
>I am using Windows 98, MSVC 6.0, Palm III (OS 3.3)/ Palm V, HotSync manager
>3.0.4.
>
>Thanks for your help.
>
>-Sugho-
>______________________________________________________
>Get Your Private, Free Email at http://www.hotmail.com
>
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html