Are you sure DmQueryRecord is returning a handle (not NULL). DmQueryRecord
will not read records in a resource DB. Also I seem to remember that the
handles of ROM DB's (resource DBs for the built-in apps) need to be treated
differently, but I don't remember the details (or even if it is true and not
something I thought at one time)

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Frank
Ableson
Sent: Monday, July 31, 2000 20:16
To: Palm Developer Forum
Subject: new subject line:) 'Inconsistent behavior with Database
Operations...."


Can anyone offer some insight to the problem outlined below.

Thank you.

Frank


W.F. Ableson <[EMAIL PROTECTED]> wrote in message
news:19178@palm-dev-forum...
>
>
> VoidHand dataH;
> BytePtr dataP;
>
> dataH = DmQueryRecord(mydbref,recindex);
>
> // I get a valid (?) VoidHand, which I then use to lock down that record.
I
> just want to read the record...
>
> dataP = (BytePtr) MemHandleLock(dataH);
>
> this line works for some databases and causes a fatal exception for
others??
> Any insights?
>
> Also, any other function which required the dataH causes the same problem:
> MemHandleSize, MemHandleFlags, etc.
>
> Thanks,
>
> Frank
>
>
>
> W.F. Ableson
> [EMAIL PROTECTED]
> http://www.cfgsolutions.com
>
>
>
>



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