Jim Salisbury wrote:
> Am using a TextField to display a log as it occurs.
> Each time there is a new line for the log I do an
> Append on the TextField. Works fine except after
> many entries it just stops and Hangs. It stops right in the
> middle of a line being appended. It smells like there is some
> internal buffer or table limit that I am running into. Can't find
> any documentation or web discussion about this.
>
> The TextField is readonly and multiline.
>
> Running onWin XP, plenty of memory.
>
> Any advice or info on this?
Under Win98 the Win32 Edit control used by Win32::GUI::Textfield is
limited to about 32K bytes; It can be increased to (about?) 64K bytes
using the SetLimitText() method.
Under WinNT/2K/XP I can't find the default limit documented (it may be
the same, but you can look using the GetLimitText() method). I think
under these OS's it should be possible to increase the allowed size with
SetLimitText() to several megabytes - Sorry, but I don't have a suitable
machine at hand to try.
If you want more space than this, the try using the RichEdit class - it
should be (almost) a drop in replacement for the Textfield, and IIRC the
text limit can be increased to about 2GB.
Regards,
Rob.
|