OutOfMemoryException in RichTextBox

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have had users report a variety of performance problems with a RichTextBox that is included in my application. In an attempt to isolate the problem, I created the following test.

I created a Windows form containing a RichTextBox. I then took a 270KB JPEG image which I paste into the RichTextBox. However, I get varying results depending on how I copy this image:

- if I display the image in MS Paint, I can copy and paste the image safely
- if I display the image in PaintShop Pro, the image can be copied and pasted OK. However, when I close the form, the process consumes around 400MB of virtual memory before throwing an OutOfMemoryException.

I am running v1.1 of the framework, and I have the latest set of Windows Updates.

Can anyone shed any light on this?

Thanks

Mark
 
Mark,

Not sure if this will help or not, but you may want to aquire the
following hotfix and see if it solves the problem.

FIX: Exception Error Message When You Access the RTF Property of the
RichTextBox Control
http://support.microsoft.com/?kbid=826981



Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top