>Under OS 3.5, there seems to be additional checking to see if a unique ID
>passed to DmFindRecordByID is valid. I know that the high 8 bits are
>checked to make sure the are zero but there seems to be something else
>which it errors on.
In debug roms, it checks that the DmOpenRef is valid, and that the database
is a record database. And both in debug and release roms it checks the top
8 bits of the uniqueID. Then it walks through the list, returning the
index if found, and if not it returns an error code: dmErrUniqueIDNotFound.
If you're seeing something else, I'd suspect that the database itself is
corrupt, such that walking the list is failing... or that the internal
count of the # of records got messed up.
-David Fedor
Palm Developer Support
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/