As I recall, when you dynamically add a control the form object is/maybe re-allocated. This means that it will move in memory.
ControlType *CtlNewControl (void **formPP, UInt16 ID, ControlStyleType style, const Char *textP, Coord x, Coord y, Coord width, Coord height, FontID font, UInt8 group, Boolean leftAnchor) <-> formPP Pointer to the pointer to the form in which the new control is installed. This value is not a handle; that is, the formPP value may change if the object moves in memory. In subsequent calls, always use the new formPP value returned by this function. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of pritam hasabnis Sent: Monday, January 09, 2006 7:27 PM To: Palm Developer Forum Subject: RE: Field Level Crashing... Hi Jim, Could you please ellaborate more on this??? Regards, -Pritam. --- Jim Morris <[EMAIL PROTECTED]> wrote: > Are you properly accounting for the change in form > pointer? > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of pritam hasabnis > Sent: Sunday, January 08, 2006 10:16 PM > To: Palm Developer Forum > Subject: Field Level Crashing... > > Hello EB, > I have Created Dynamic Field Control but it Crash's > at FldSetTextHandle(Fld_ptr,mHandle) event...any > sensible reason for it? > > Also My Application Size is above 44kb and I am not > getting Segmentation problem. Isn't it strange? Will > I > have this crashing problem if my Application size > increases tremendously at runtime? > > Regards, > -Pritam. > > > > __________________________________________ > Yahoo! DSL - Something to write home about. > Just $16.99/mo. or less. > dsl.yahoo.com > > > -- > For information on using the PalmSource Developer > Forums, or to unsubscribe, > please see http://www.palmos.com/dev/support/forums/ > > > -- > For information on using the PalmSource Developer > Forums, or to unsubscribe, please see > http://www.palmos.com/dev/support/forums/ > __________________________________________ Yahoo! DSL - Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
