// Run this macro to verify the v1.48b fix for a bug that // caused memory allocated for batch mode images to // not be reclaimed by the Java garbage collector works. // You must first use Macros>Install Macros to create the // Plugins>Macros>Open Image command. After running the // macro, click in the "Memory" window to run the garbage // collector. doCommand("Monitor Memory..."); setBatchMode(true); for(i=0;i<100;i++) { doCommand("Open Image"); wait(20); } run("Close All"); exit; macro "Open Image" { newImage("Untitled", "8-bit ramp", 1024, 1024, 1); }