>> Use DmStrCopy - the pointer returned in in a protected area.

> No, I don't think you read his code carefully.

Indeed not. But perhaps we should read his comments more carefully, too.
Having lurked on this thread for a while, I think that what our friend is
trying to do is this:

recordH = DmGetRecord(dbRef, RecordNr);
recordPtr = MemHandleLock(recordH);
DmStrCopy (recordPtr, 0, Regel);
MemHandleUnlock(recordH);
DmReleaseRecord(dbRef, RecordNr, true);

This explains his remark about there being two errors. Presumably his first
error was to use StrCopy instead of DmStrCopy. Then he tried changing the
write operation to a read (by way of experiment). So he replaced DmGetRecord
by DmQueryRecord, but forgot to remove the call to DmReleaseRecord.



-- 
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