Page 1 of 1

insert picture memory usage problem

Posted: Wed Mar 03, 2010 12:30 pm
by cychia
I have done a test using RichViewAction demo, insert a picture around 2 mb from local file. and check the memory usage in Task Manager it shoot higher than 2 mb. then i delete the picture, the memory usage does not reduce, any idea?

Posted: Wed Mar 03, 2010 5:04 pm
by Sergey Tkachenko
Picture is loaded in the corresponding TGraphic class, like TBitmap or TJpegImage. The amount of used memory depends on them.

When you delete the picture in the editor, it is not freed but moved in the undo buffer.

Posted: Thu Mar 04, 2010 1:16 am
by cychia
ic, thanks