Hello imageJ people,

recently I encounter the problem that ImageJ would not release the memory of closed images when I run a macro in batchmode. I use v1.50c of the Fiji distribution. If I don't set the batchmode to true, the memory is released normally. I tried several "tricks" but none of them lead to a release:

  • run("Collect Garbage");
  • run("Close All");
  • call("java.lang.System.gc");
  • while(nImages > 0) close();

Does anyone know what causes this jam and how I can avoid it? I'd rather want to run the macro in batchmode. Any suggestions or tipps?

Thank you!

More Martin Jakob's questions See All
Similar questions and discussions