I am trying to solve a problem with my software running on Tungsten T5 devices.
I can replicate this on the T5 Simulator, but it doesn't replicate on the
PalmOS 5.4 Garnet Simulator running the Full enUS Debug ROM.
In the following code, I am trying to replace an existing record using the
DmAttachRecord call, using the technique where the 4th parameter is not NULL,
but rather is a pointer to a NULL MemHandle. According to the documentation,
it should return a pointer to the replaced record. It does on every system
I've tried, except for the T5. On this device, the call to DmAttachRecord
generates error "datamgr.c, Line:5630, Record is busy when it shouldn't be".
Has anyone seen this error on the T5 and figured out how to get around it?
MemHandle newRecordH;
MemHandle oldRecordH = NULL;
Err error = errNone;
// Create a new record of the needed size
newRecordH = DmNewHandle(ladbP->dbRef, LaRecordSize(ladbP, fieldData));
[...]
error = DmAttachRecord(ladbP->dbRef, &index, newRecordH, &oldRecordH);
Thanks
Andy Ihlenfeldt
Lawson Software
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/