Hmmm... Why does it only happen on the color ROM?
At 11:39 AM 7/13/01 -0700, Danny Epstein wrote:
>I added this assertion in 4.0. It happens if you call DmReleaseRecord when
>the record isn't busy. You _should_ call DmReleaseRecord after DmGetRecord
>and DmNewRecord because these functions mark the record as busy. You
>_shouldn't_ call DmReleaseRecord after DmQueryRecord because it doesn't mark
>the record as busy.
>
>Note that "busy" is not the same as "locked" or "dirty".
>
>There is still no assertion that the record is busy when it's being modified
>though. So you can DmWrite to a pointer you get from locking a handle
>returned by DmQueryRecord, and Palm OS won't complain.
>
>For a somewhat-related discussion in the archives, see:
>
>http://www.escribe.com/computing/pcpqa/index.html?by=OneThread&t=OS%204.0dr4
>%20-%20DataMgr.c%2C%20Line%3A6915%2C%20Record%20isn%27t%20busy
>
><placeholder for the usual multi-line URL warning>
>
>You should be aware that the debugger may point to the line after the
>currently executing function in some cases. This may or may not be relevant.
>--
>Danny @ Palm
>
>-----Original Message-----
>From: Scott Herman [mailto:[EMAIL PROTECTED]]
>Sent: Friday, July 13, 2001 10:40 AM
>To: Palm Developer Forum
>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/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/