What could cause DmGetRecord to return NULL, but also cause DmGetLastErr
to return 0? It is my understanding that DmGetLastErr should help me
figure out why DmGetRecord fails.
Here is essentially my code:
Err wish_modify_wish(UInt16 *record_num, WishFieldsType field_type, void
*data)
{
Err err = errNone;
MemHandle h;
Char errbuffer[128];
h = DmGetRecord(_wish_db, *record_num);
if (!h)
{
Err err = DmGetLastErr();
StrPrintF(errbuffer, "Error %d Record %d", err, *record_num);
ErrDisplay(errbuffer);
ErrDisplay("Failed to get record");
return err;
}
/*SNIP*/
return err;
}
_wish_db is a valid pointer through which I can later get other records
from the database during the same debugging session. And record_num
points to the value '0', which should be a valid index for a database with
66 records.
I am running on Pose 3.3 with the 3.0 debug rom and the error occurs about
350,000 events into a gremlin run, so it isn't frequent.
scott
--
------------------------------------------------------------------------
scott [EMAIL PROTECTED]
------------------------------------------------------------------------
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/