What's Best way for free inserted picture

General TRichView support forum. Please post your questions here
Post Reply
mohsen24000
Posts: 75
Joined: Fri Jan 06, 2012 8:13 pm

What's Best way for free inserted picture

Post by mohsen24000 »

Hi,
Please explain about way of free pictures that added to TRichview,
it's cause memory leak!
I insert many of png pictures to cell of many rows.
How can to avoid memory leak.

Thanks a lot.
Sergey Tkachenko
Site Admin
Posts: 17564
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Images are freed when they are removed from TRichView (unless you set rvepSharing property for them to nonzero value, see http://www.trichview.com/help/idh_type_ ... perty.html )
I.e. after calling
RichView.Clear - clearing the whole document
table.Cells[r,c].GetRVData.Clear - clearing the cell
or deleting pictures with DeleteItems method.
Post Reply