> 
> POSE Error: "...directly read from data manager data structure.."


Since it's a read error and not a write error, your problem is not with the
writing done by StrCopy.

I'd guess that you've got one of two problems:
    DmQueryRecord is returning NULL
    The length of the record returned is less than 3 (so that trying to do a
StrCopy from RecPointer + 2 fails).

Add code to check both of these.  If the DmQueryRecord fails, call
DmGetLastErr to find the reason.

Neil
> Is this really a no-no?  POSE identifies this as an error and I'm trying
> to find the source.
>
> I have some code that gets Names from DB Records as follows:
>
> for(i=0; i<numRecs; i++) {
>     RecHandle = DmQueryRecord(MyDB, i);
>     RecPointer = MemHandleLock(RecHandle);
>     StrCopy(NameArray[i], RecPointer + 2);  // name starts at +2
>     MemPtrUnlock(RecPointer);
> }
> 

Reply via email to