Page 1 of 1

What's Best way for free inserted picture

Posted: Mon Oct 13, 2014 5:10 pm
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.

Posted: Tue Oct 14, 2014 5:36 am
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.