Hi all,
 
I need some help with the problem of out of memory with at jsvgcanvas. At my
viewer, I have a ArrayList() where I put my JSVGCanvas objects. The size of
the ArrayList is the total of pages the document have.
I want to keep five pages in memory. So every time I change this cache, I do
this:
 
/* This for can found the correct pages in memory */
for (int i = currentRange.getStartPage(); i < currentRange.getEndPage() + 1;
i++) {
FVCanvas canvas = (FVCanvas) iterator.getItemAtPosition(i);
canvas.stopProcessing();
canvas.setDocument(null);
canvas.dispose();
}

I also call System.gc() every time I change the page.
Does anybody have any idea why some memory still in use?
 
Thanks,
Henrique.

Reply via email to