My apologies...I originally posted this under the original topic, but was
afraid it might
get missed.  If anyone objects to me doing this, please let me know and I
will not do it again! Thanks!
=========================================================
Ben,

Thanks for the response...

When you say setting it longer than original text specified in the
resources, are you referring to the entry in the rcp file for this label?

If so, to test your theory, I just updated the rcp file line for this label
as follows:

LABEL "1234567890123" ID lblSessionTime AT (128 19) FONT 0

I still received the same error after making this change.


The string I am copying in is defined and generated as follows:
static Char sessionTimeText[10];
...

sprintf(sessionTimeText, "%02d:%02d",
(secondsSinceStart / 60), (secondsSinceStart % 60));
sessionTimeText[9] = 0;


As a test, I also changed the above sprintf to only pass "Hello!" and I
still have the same problem.

Thanks for your help!


"Ben Combee" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> At 02:03 PM 11/10/2003, Michael Jones wrote:
> >New Application (unknown version) called SysFatalAlert with the
> >message: "Form.c, Line: 1272, Object not in form."
> >
> >When stepping through the debugger, this error is triggered by the
> >FrmCopyLabel line above.  I can not understand for the life of me
> >why the FrmHideObject which uses the same object index is fine but
> >the next line fails.  If I comment out the FrmCopyLabel line, all is
> >well - except my label remains unchanged.
> >
> >Any pointers?
>
> Are you setting new label text that was longer than the original text
> specified in your resources?  That can overwrite internal form data
> structures, causing the "object not in form" error.
>
> -- 
> Ben Combee <[EMAIL PROTECTED]>
> CodeWarrior for Palm OS technical lead
> Palm OS programming help @ www.palmoswerks.com
>
>







-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to