RE: new subject line:) 'Inconsistent behavior with Database Operations....

2000-08-01 Thread William F. Weiher III

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/



Re: new subject line:) 'Inconsistent behavior with Database Operations....

2000-08-01 Thread Holger Klawitter

  dataH = DmQueryRecord(mydbref,recindex);
  // I get a valid (?) VoidHand, which I then use to lock down that record.
  just want to read the record...
  dataP = (BytePtr) MemHandleLock(dataH);

  this line works for some databases and causes a fatal exception for
 others??

Perhaps the handle is already locked? Which probably means that
you did not unlock your handles properly.

Regards,
Mit freundlichem Gruß,
Holger Klawitter
--
Holger Klawitter+49 (0)251 484 0637
[EMAIL PROTECTED]http://www.klawitter.de/




-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/



new subject line:) 'Inconsistent behavior with Database Operations....

2000-07-31 Thread Frank Ableson

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/