W
Walter L. Williams
VS.NET 2K3 and .NET 1.1
I'm having a problem with RichTextBox allocating huge amounts of memory for
text. I have recreated the problem in the attached sample which, when the
button is pressed, will create a ~33MB file and load it into the
RichTextBox.
If you watch the memory in Task Manager, before the button it consumes ~15MB
max, but after it's finished, the memory is upwards of 140MB. Immediately
invoking the GC doesn't seem to help. I've tried different things to no
avail.
Strangely enough, if I minimize the window, or maximize and restore, it will
go down to something I could at least understand.
I thought it might be related to http://support.microsoft.com/?kbid=826981,
which fix was included in the recently released SP1. I retested the issue
using the service pack, but it's still there.
What can I do to fix this?
====================================================
Walter Williams
Software Engineer
Sawtooth Software, Inc.
http://www.sawtoothsoftware.com
I'm having a problem with RichTextBox allocating huge amounts of memory for
text. I have recreated the problem in the attached sample which, when the
button is pressed, will create a ~33MB file and load it into the
RichTextBox.
If you watch the memory in Task Manager, before the button it consumes ~15MB
max, but after it's finished, the memory is upwards of 140MB. Immediately
invoking the GC doesn't seem to help. I've tried different things to no
avail.
Strangely enough, if I minimize the window, or maximize and restore, it will
go down to something I could at least understand.
I thought it might be related to http://support.microsoft.com/?kbid=826981,
which fix was included in the recently released SP1. I retested the issue
using the service pack, but it's still there.
What can I do to fix this?
====================================================
Walter Williams
Software Engineer
Sawtooth Software, Inc.
http://www.sawtoothsoftware.com