You still have to call MemHandleUnlock when you use MemHandleLock. If you
use DmQueryRecord, you don't need to call DmReleaseRecord when you're done
with it.

----- Original Message -----
From: "Scott Herman" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Friday, July 13, 2001 1:40 PM
Subject: DmQueryRecord problem on Color 4.0 ROM in POSE


> I have a program which accesses a database for reading
> only. I read records using DmQueryRecord() and then
> MemHandleLock() the returned handle. When I test this
> code on the emulator using 4.0 color ROM images, I get
> an error that says, "DataMgr.c  line 7057, Record isn't
> busy".
>
> Is this a bug or truly an error condition? Shouldn't I be
> to lock the handle of a retrieved record, whether it came
> from DmGetRecord() or DmQueryRecord()? If not, why not?
> ... and where might this be documented?
>
> I've searched the archives and can't seem to find anything
> on this. I can't be the only one who has run into this...
> ...or can I?
>
> Any insight would be appreciated.
>
> TIA
>
>
> Scott Herman
> Yale New Haven Hospital
> Department of Lab Medicine
> 20 York Street
> New Haven, Ct.  06504
> (203) 688-2449
> [EMAIL PROTECTED]
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
>



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