> > I've seen this type of error occur most often in my early
> > code, where I
> > would take a string from a database and put it in a label. If
> > the label was
> > too short for the string (yes, I learned that lesson quick!),
> > not only would
> > the buffer overrun, but it would do so silently. It would
> > become visible
> > because the overwrite would in some manner damage the form elements
> > following the label in memory, causing them to be inaccessible, and
> > generating this error message.
>Now that sounds like it could be my problem - presumably then if that is the
>case, doing a hard reset will have just postponed the problem. Before I
>waste time chasing demons - could anyone confirm this..
Yes, it can. When you exceed the pre-allocated size for form text
elements (title, text label, control label), you typically tromp on
the following object's structure. This typically munges the object
id, attributes, and/or position. The end result can be mysterious
"object not in form" errors, or objects disappearing from the screen
(because their position has been altered), or many other entertaining
debugging problems.
-- Ken
Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/