Memory leak in an Illustrator script
Hi there,
Open Illustrator, create a path with two points and run the jsx-script:
function test() {
for(var i=0, x; i<20000; i++)
x = app.activeDocument.pathItems[0].pathPoints[0].anchor[0];
}
test();
alert($.summary());
You will get "... PathPoint: 20000 ..." and lose 100Mb of memory just for reading of data. The memory will be freed when the jsx-script will be stopped.
When I try to call the function from HTML Extension the memory is never freed. PathPoint: 20000, 40000, 60000 and so on.
Do you have any suggestions how to solve the problem?
Thanks
