> From: George Henne [mailto:[EMAIL PROTECTED]]
> We're getting a Bus Error on the following statement when
> running on POSE 3.0a4, using the OS 3.5 debug ROM.
(Any reason you're not using POSE 3.0a6?)
> CtlSetLabel( (ControlType*)(FrmGetObjectPtr(frmPtr,j)),
> (char*)(thisObjPtr->dataPtr));
Does it crash in the FrmGetObjectPtr call, or in the CtlSetLabel call, or
does it crash later when the OS tries to draw the control on screen?
What is the data type of thisObjPtr->dataPtr? Is it just (const char*) with
the const being casted away, or something else?
Does thisObjPtr->dataPtr stay valid for the entire life of the form? In 3.5
it must because the OS needs to access the string every time it draws or
highlights the control. In previous OS versions it didn't necessarily
access the pointer after the initial draw, so if the string pointer became
invalid shortly thereafter, the bug wouldn't always be discovered.
-slj-
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/