Hi all,

the palm database I'm coding seems to get corrupted after
I exit the application and enter it again. It works ok only on when 
the application runs on the first time..

Is there anything wrong with the way i insert database records....

        MemHandle newRecordh;
        MyRecordStructure* newRecordP;
        MyRecordStructure newRecord;
        DmOpenRef iccDB; //reference to the DB, created already
        

        newRecordh = DmNewRecord(iccDB, &dbCursor, sizeof(newRecord));
        newRecordP = MemHandleLock(newRecordh);
        
        DmWrite(newRecordP, 0, &newRecord, sizeof(newRecord));
        
        MemHandleUnlock(newRecordh);
        DmReleaseRecord(iccDB, dbCursor, true);

When I used debugger to debug it seems that the data retrieved from the DB
on subsequent invocations of the applications is corrupted. (i.e., it only
works for the first time)

Thanks to any advice rendered

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

Reply via email to