Ed,

DmOpenRef by definitionis a DataManagerOPENReference :-)

You need to open a database before you can count the records in it.  It's
failing most likely because your DmOpenRef points to nothing or at least not
a valid database.

(see code I sent you earlier)

-- 
Matt Disher
[EMAIL PROTECTED]


> From: "Edward P. Ross" <[EMAIL PROTECTED]>
> Organization: Acrocat Software
> Reply-To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Date: Sun, 10 Mar 2002 18:12:43 -0800
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Subject: DmNumRecords
> 
> I have the following code below... that fails on the numRecs =
> DmNumRecords(gSRWorkDB); line
> 
> I have verified that the database is open/created (thanks to you guys).  The
> error on the line that I get is "Application just
> read from memory location 0x00000006, which is in low memory."
> 
> Any ideas?
> 
> Thanks again,
> Ed.
> 
> extern DmOpenRef gSRWorkDB;
> 
> // Get number of records in database
> numRecs = DmNumRecords(gSRWorkDB);
> if (numRecs >= 1) {
> myState = true;
> } else {
> myState = false;
> }
> 
> 
> 
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe, please
> see http://www.palmos.com/dev/support/forums/
> 


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

Reply via email to