How reduce the space in memory of TRichEdit?

General TRichView support forum. Please post your questions here
Post Reply
RichEnjoyer
Posts: 14
Joined: Fri Jan 20, 2006 11:05 am
Location: Germany

How reduce the space in memory of TRichEdit?

Post 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
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

For any case, I need to ask - is your question about TRichEdit or TRichViewEdit?
RichEnjoyer
Posts: 14
Joined: Fri Jan 20, 2006 11:05 am
Location: Germany

Post by RichEnjoyer »

I used the TRichViewEdit... is it better that i use the TRichView for Output only?

Best wishes... Frank
Rob
Posts: 52
Joined: Wed Sep 07, 2005 6:47 am

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Post Reply