I think I ran into the same or a similar problem. I saw it when I tried to modify and existing record so that it was a different size and write it back out. I ended up making sure the record was the same length when I wrote it out as when I read it. I'm not sure if I have different sizes of records in the database. I'll be interested in the other comments on this.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Alexandre Kazantsev Sent: Wednesday, August 06, 2003 12:25 PM To: Palm Developer Forum Subject: Variable record size Hi all, I was trying to implement a simple database with records of variable size. Say, initially the database contained 5 records of 20,000 bytes each. All the initial records were created with DmNewRecord (DmOpenRef dbP, UInt16 *atP, UInt32 size) as appropriate, and size was 20000. Then the code changed to implement an additional size, say 30000, bigger then the first one. At this moment I started getting the "DmWriteCheck failed" error on attempt to write to a new, longer record. The problem has gone as soon as I deleted all the records in the database without reopening it . Now only the longer size seems to be available. Is it possible at all to implement a database with records of variable length? If yes, how? -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
