Are using using OS 3.5? I had a similar occurance. The cause was that my
custom draw routine is being
called on 3.5 when a record no longer exist in the database.
Example:
- I have a table listing the short description of each record.
- A row is tapped and this brings me to a detail screen.
- I press the delete button. This wipes out the record and returns me to
the list screen. On OS 3.5, the table is forced to be redrawn BUT the record
index of the record I just deleted is still saved in the table. My draw
routine is called again with an invalid index.
> ----------
> From: Tim Astle[SMTP:[EMAIL PROTECTED]]
> Reply To: Palm Developer Forum
> Sent: Tuesday, June 06, 2000 3:14 PM
> To: Palm Developer Forum
> Subject: Curious occurance...
>
> I just ran into a case when if I return to a form /w table, scrollbar,
> which
> dynamically loads from my database, I get a DataMgr.c, Line:7821, Index
> out
> of range error.
>
> Now this is weird because it indicates, from what I can tell, that I have
> an
> invalid index for referencing my database. To flush this out, I ran it
> through the debugger, and it runs perfectly! I'm very curious as to why
> this is happening. Does anyone have an idea?
>
> --
>
> Tim Astle
>
>
>
> --
> 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/