ImageJ crashes (that is, it closes) when running a macro, at the line that includes “GetDirectory(…)”. This also applies to the test macro included with ImageJ (GetDirectoryDemo.ijm).
Removing this line, the macro then runs fine, except of course for errors regarding the missing directory. Other macros run also fine as long as they do not include “GetDirectory…”.
I have 2 computers, with identical installations, versions and setup (ImageJ 1.53a Java bundle, Windows 10 Pro Version 2004, 19041.450, Java 1.8.0_261, NortonLifeLock, identical settings in Windows Security and in Norton). On my desktop computer ImageJ crashes with such macro, on my laptop, the macro runs fine. I have also tried with de-activated Norton, so it is definitely not a problem with it.
I also have 2 sons living separately. One one computer the macro runs fine, on the other it crashes ImageJ. On my mentor’s computer, the macro also runs fine.
I assume that this problem may have plagued other ImageJ users. Do you have a solution?