On Tue, 22 Jun 1999, Chris Antos wrote:
> in my experience, those errors frequently mean that FldFreeMemory got
> called, and then the field got reused without first calling
> FldSetSelection(pfld, 0, 0).
I don't call FldFreeMenory anywhere in my app. Can this be called by
something else? I do use FldDelete(). I use FldSetSelection only in my
SelectAll menu selection function.
Where is it that people can go to find out what these errors mean?
>
> ----- Original Message -----
> From: Michael S. Davis <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 22, 1999 8:30 AM
> Subject: Field Error: Need suggestions
>
>
> > I am trying to debug an app and cannot seem to see the
> > what is causing the problem.
> >
> > I have a field: fldXReg; it is an single line, editable field and is
> > limited to 30 chars in the form.
> >
> > I update the field (only) with a function that is passed the FieldPtr and
> > a string pointer (s) and contains the following code:
> >
> > FldDelete(fldP, 0, FldGetTextLength(fldP));
> > FldInsert(fldP, s, StrLen(s));
> >
> > My problem is that after about 400,000 Gremlin steps I get two errors:
> > One with one Gremlin number and another with a different Grmelin #:
> >
> > 1) Error 1: Field.c, Line 100, Invalid field length
> > 2) Error 2: Field.c, Line 121, Invalid word wrapping info
> >
> > Both of these errors occur when editing this field. The second error
> > occurs with the Keyboard displayed and the field data also displayed in
> > the Keyboard form.
> >
> > I cannot see what could be causing these problems. I have tried entering
> > the data as the last number of steps that are in the Log file but that
> > does not seem to generate the error.
> >
> > When the 2nd error occurs, the Gremlin test stops, I can 'continue'
> > the Gremlin tests and when I manually tap my pen in the editing field, I
> > get the error again.
> >
> > Any clues as to what might be causing these errors. Also, it takes
> > a couple of hours to get to 400,000 steps. Is there some way to start
> > this Gremlin a little further down the sequence so it does not take so
> > long?
> >
> > Thanks
> >
> > ----------------------------------------------------
> > Shoot-to-Win
> >
> > Protect the 2nd Amendment
> > ----------------------------------------------------
> >
> >
>
>
>
----------------------------------------------------
Shoot-to-Win
Protect the 2nd Amendment
----------------------------------------------------