Are you unlocking the record handle? You can only grow a record if its handle is unlocked.

Dana Long wrote:

Greetings,

I have a database record that looks like this:

+-------------------------+
|  struct ServiceLogEntry |
+-------------------------+
|  variable length null   |
|  terminated char[]      |
+-------------------------+

When I try to resize a record in the database I get a sys fatal alert with the message "DataMgr.c Line 6642, Resizing record" from POSE.

I've got plenty of room to grow this record so I don't understand this. Is DmResizeRecord(...) not supposed to be used?

Code follows:

if (commentLen != currEntryPtr->commentLen) { // Yes, grow or shrink entry
DBEntryHdl = DmResizeRecord(DBRef, sCurrentIndex,
sizeof(ServiceLogEntry) + commentLen);
} else { // No, use existing entry DBEntryHdl = DmGetRecord(DBRef, sCurrentIndex);
} Thanks,


Dana





-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to