At 11:56 AM +0000 3/25/02, Mark Kenny wrote:
>               recHandle = DmNewRecord(gDB, &newIndex,
>sizeof(Weekday)+StrLen(record->Modules)+StrLen(record->Type)+1
>               if (recHandle) {
>                       recPointer = MemHandleLock(recHandle);
>                       DmWrite(recPointer, 0, &(record->day), sizeof
>(Weekday));
>                       DmWrite(recPointer, sizeof(Weekday), record->
>Modules, StrLen(record->Modules)+1);
>
>                       DmWrite(recPointer, sizeof(Weekday)+257, record->
>Type, StrLen(record->Type)+1);
>


When I add up the lengths of the strings you're writing with the 
DmWrite calls, I come up with one more than the size of the record 
you created with the DmNewRecord call.


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

Reply via email to