"Stephen Best" <[EMAIL PROTECTED]> wrote in message
news:40400@palm-dev-forum...
> I'm getting a "DataMgr.c, Line:6915, Record isn't busy" message with OS
> 4.0dr4 with the following code:
>
>    DmResizeRecord
>    MemHandleLock
>    DmWrite
>    MemHandleUnlock
>    DmReleaseRecord (dbR, index, true);
>
> I would have thought the DmReleaseRecord would be required here ...

I added this assert. You'll have to look a little further back in your code
to find where you get the handle for the resource. Did you use
DmQueryRecord, DmGetRecord, or DmNewRecord? The first sets doesn't set the
busy bit; the second and third do. You're only supposed to call
DmReleaseRecord to clear the busy bit if you previously called DmGetRecord
or DmNewRecord to set the busy bit.

Note that this is just an assert. On release ROM's, it'll still work fine.
--
Danny Epstein
OS Engineer, Palm Inc.


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