"Roberto Amorim" <[EMAIL PROTECTED]> wrote in message
news:9594@palm-dev-forum...
> HandleOrder = DmQueryRecord(PVOrder, PedRegCorr);
>
> Error = DmGetLastErr();
> ErrFatalDisplayIf(Error, "Unable to locate Order");
> *****This test returned Error=zero*******
>
> RecTempOrder = MemHandleLock(HandleOrder);
> ****The error now is here "Invalid Handle"*****
I normally check if the result of DmQueryRecord is null rather than using
DmGetLastErr, although either should work as far as I can tell.
It looks like you managed to put an invalid handle into a database or you
freed a handle that contains a database record. Are you using
DmAttachRecord? Are you calling MemHandleFree or MemPtrFree on a chunk
containing a database record (without detaching it)?
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html