Memory leak
Posted by Gib Bogle on Jan 26, 2007; 2:15am
URL: http://imagej.273.s1.nabble.com/Memory-leak-tp3700430.html
I have written a plugin that causes a memory leak. Each time I run the
plugin on a single image (3600 kB TIF) the memory monitor shows about 14
MB of memory is not released.
The plugin does a variety of operations:
Polynomial Fit (by Bob Dougherty)
Image Calculator
Multiply
Bandpass Filter
Threshold
Analyze Particles
At this stage I can't tell where the memory is being retained. I'm
wondering if there is a general rule for ImageJ plugin development to
avoid this problem. If I was just looking at single images it wouldn't
be a concern, but I want to process sets of images (e.g. 100s) and I can
run out of available memory.
Thanks
Gib