On: Monday, November 08, 1999 9:21 PM Michael S. Davis wrote:
>FldSetFont() is what is generating the error and it only happens,
>if the field has single line attribute set to TRUE. If I change
>it to FALSE, it works without error.
>From a quick scan of the 3.0 sources, it would seem this "behaviour"
is going to happen if the field is single line *and* the field
contains text when the call to FldSetFont() is made.
Typically if fld->attr.singleLine is true, the fld->lines pointer
(word wrap info etc) is n/a and indeed FldSetFont() ensures it is
NULL. However, FldSetFont()subsequently tests fld->textLen and if
non-zero procedes to reference various elements of the lines struct
such as fld->lines->start - Boom!
Rgds
Chris