Baxter, >I inherited some code. The ID's were unique .within.the.file. (or database) >and set from the index of the loop that wrote the records to the file/pdb. >For less than 256 records the system worked fine, when 270 records were >tried, 14 records disappeared. Since the ID's WERE unique within the file, >I have to conclude that there is *some* global component to the UniqueID's,
I suspect the code you inherited did not properly set the unique ID. It sounds like it only set 8 of the 24 bits (perhaps the least signifiant 8 bits, but the effect would be the same regardless of which byte was actually set). I am quite certain the IDs were NOT unique within the PDB you were trying to install. It is the only reasonable explanation for the symptom you were getting, especially if it cleared up when you set them all to zero. The loop index may have been over 8 bits, but I strongly suspect the code which populated the recordlist's unique ID values only set 8 of the 24 bits. Doug -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
