From: "Patrick Ouellet" <[EMAIL PROTECTED]>
Subject: Re: List Object HowTo
> Ok... I finnaly found what the problem was...
> I think there is some kind of oddities in the error reporting...
> Cause the problem had nothing to do with the form...
> It was the 5 labels that I was filling just before....
> Since the text that was in ariginaly was smaller that
> the one that I tryed to put in It made a buffer overflow
> that cause the Palm to make an error... unfortunaly
Patrick, I'm glad you found the source of your problem. The "Object not in
form" report is actually quite accurate in this case. Parts of the form
that are expected to not change are stored in one block of memory. If you
try to stuff something too big into something that is stored inside this
block, you will over-write some other part of the form. That is why the
object you were referencing was no longer in the form. If you want to
change the contents of some text on a form at run-time, it is usually better
to use a field instead of a label. You can make the field non-editable if
that is what you need.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/