Take a look at the code below:

DatabaseHandle=DmOpenDatabaseByTypeCreator('DATA', 'ABCD', dmModeWrite);
index++;
RecordHandle = DmNewRecord(DatabaseHandle, &index, 64);
RecordPointer = MemHandleLock(RecordHandle);
DmWrite(RecordPointer, 0, dat, StrLen(dat)+1);
MemHandleUnlock(RecordHandle);
DmReleaseRecord(DatabaseHandle, index, true);
DmCloseDatabase(DatabaseHandle);

I am using this to write into a database. It works somewhat. However, if the
string dat becomes more than about 20 or 30 characters, I get an error:
"DataMgr.c, Line:7386, DmWrite: DmWriteCheck failed". What could be the
cause of this, and how will I be able to fix it? Thanks.



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

Reply via email to