> How are you populating your tables? Are you using the method of storing
the
> record number in the table's Row ID and then letting your
> CustomDrawProcedure query the database and displaying the row? If so,
try
> to figure out which record number your CustomDrawProcedure is processing
by
> using Palm Reporter (or debugger). If you see that it is trying to
retrieve
> an invalid record (most likely a deleted record from the end of the
> database), your problem is the situation I've described earlier.
>
> A quick test you can do is to return from your CustomDrawProcedure
> immediately if your DmQueryRecord() fails and see if your problem goes
away.
Excellent! You were right.
// Query Record
record = DmQueryRecord(gInfoDB, recordNum);
// If the Query failed
if(!record)
return;
It fixed the problem. Thanks a million!
+++++++++++++
Timothy D. Astle
Embedded Systems Programmer
ALT Group Inc.
+++++++++++++
"People who can smile when things go wrong has thought of someone else to
blame it on."
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/