Is the value of recindex valid for all your databases? You should also use DmGetLastErr() to check for errors after calling DmQueryRecord(). -Ken > ---------- > From: Frank Ableson[SMTP:[EMAIL PROTECTED]] > Reply To: Palm Developer Forum > Sent: Monday, July 31, 2000 10:16 PM > 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/