STC goes blank on AddText() after 5k chars

I'm having a hard time tracking this one down. I'm writing text, a
sentence at a time, to a StyledTextControl, always at the end. It
works fine until . . . well, until what? When I add "one too many
sentences" the STC goes entirely blank. Adding more after that
doesn't make a difference. The data are still there, according to my
debugger.

"One too many sentences" *almost* means "whatever sentence comes
after the one that pushes the output beyond 5100 chars in length" but
not quite; sometimes it can get up to 5140 chars. But it's a pretty
narrow range in any case.

Has anybody else seen this? Has anybody got a suggestion about where
to look? My own code around the STC.AddText() call looks OK . . .

Is the text you are adding all on one line? Are there any CR/LF
characters in the added text? Are you using the ansi or unicode version
of wxPython?

This is on Mac OS 10.4.5 (happens to be Intel), with Python 2.4.1
(MacPython PPC) and wxPython 2.6.2.1.

You are running MacPython PPC on an Intel OSX 10.4.5? Are you sure?

- Josiah

ยทยทยท

Charles Hartman <charles.hartman@conncoll.edu> wrote: