Date sent: Fri, 02 Jul 1999 12:25:23 -0700
From: "Neil Rhodes" <[EMAIL PROTECTED]>
Subject: Re: Gremlin Error: Directly Read from DataMgr Data Structure
To: [EMAIL PROTECTED]
Send reply to: [EMAIL PROTECTED]
> >
> > 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.
The StrCopy is copying 'Name' from the Data Record Structure to
somewhere else. Isn't that a 'read' from the Data Record Structure.
Certainly a 'read' is done from this area, else the Array could not
be filled. Data is 'read' from that area and the data is placed in
the array.
> 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
I have checked and there are no data records less than 3. The
smallest record is 38 bytes. And I have _no_ errors on the actual
device. Only POSE detects the error.
> 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);
> > }
> >
>
--
-----------------------------------------------------------------
Discussion Group: http://www.halcyon.com/ipscone/wwwboard/
Protect your constitutional rights. Your favorite one may be next!
-----------------------------------------------------------------