i don't think so. FldNewField adds the Field to the Form, so when the Form
closes, it automatically calls FldFreeMemory just like it does for any other
Field.
are you using FldGetTextPtr or FldGetTextHandle, and then refering it after
the form has closed?
as always, if you run this under the debugger, it will show you exactly what
you're doing wrong.
----- Original Message -----
From: "Zoltan Gombosi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 06, 2000 7:01 AM
Subject: RE: Dynamic Field
> I'm not sure if you're doing this, but you need to do a
> FldFreeMemory(FieldPtr field) when you're done with the field.
>
> Zoltan
>
> > -----Original Message-----
> > From: Frans Amelink [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 05, 2000 4:06 PM
> > To: Palm Developers Forum List (E-mail)
> > Subject: Dynamic Field
> >
> >
> > Hi,
> >
> > I'm creating a dynamic field in an existing form using
> >
> > fieldP = FldNewField((VoidPtr *)&frmP, ObjId, x, y, cx, cy,
> > stdFont,
> > 10, file://num of chars
> > true, file://editable
> > true, file://underlined
> > false, file://single line
> > true, file://dynamic size
> > leftAlign, file://justification
> > false, file://auto-shift
> > false, file://has scrollbar
> > false file://numeric
> > )
> >
> > however after closing the form, I get a "Application has just
> > read directky
> > from memory manager data structures." warning.
> > Funny thing is, that this happens only when I change the data in
> > the field.
> > Any ideas anyone?
> >
> > Thanks
> >
> > Frans
> >
>
>