Page 1 of 1

How reduce the space in memory of TRichEdit?

Posted: Sat Mar 04, 2006 1:24 pm
by RichEnjoyer
Hi have 12 TRichEdit in my application, the size in Memory of this Application ist 12 MB i think it is the TRichEdit...

In any TRichEdit i have only 500 lines...
I use it only for text in different collors...



best wisches, Frank

Posted: Sat Mar 04, 2006 4:42 pm
by Sergey Tkachenko
For any case, I need to ask - is your question about TRichEdit or TRichViewEdit?

Posted: Mon Mar 06, 2006 10:50 pm
by RichEnjoyer
I used the TRichViewEdit... is it better that i use the TRichView for Output only?

Best wishes... Frank

Posted: Tue Mar 07, 2006 11:30 am
by Rob
RichView is a little more resource-friendly. Do you need all RichViews to be filled all the time?

Memory consumption depends a lot on what the RichViews contains.

Posted: Tue Mar 07, 2006 5:27 pm
by Sergey Tkachenko
TRichViewEdit and TRichView use almost the same amount of resources.
(additional resources used for editing are very insignificant)

Probably, documents are created in nonoptimal way. For example, several items are used to represent adjacent text where one item could be used.
Try to call NormalizeRichView procedure (RVNormalize.pas from RichViewActions) for your documents, it can make them more optimal.

Also, the justify alignment requires more memory than other types of alignment.