imagej / imagej-launcher

The ImageJ native launcher
https://imagej.net/learn/launcher
BSD 2-Clause "Simplified" License
21 stars 23 forks source link

Decrease WIN32 max heap size to 1224m #41

Closed stelfrich closed 8 years ago

stelfrich commented 8 years ago

I have tested for the maximum heap size on two different machines: A Windows 10 (32-bit) VM still works with 1408m, while the launcher crashes on a Windows 10 (32-bit) physical machine. On the latter machine, I have determined the max heap size to be 1224m. This launcher also works properly on the former VM and should do so on other machines for which the launcher has worked before.

NB: If you ever have to compile the launcher on Windows 10 (32-bit) with a current version of MinGW, remove platform.c:L1072-1075. There is a collision with the definition of sleep() in the unistd.h that is shipped with MinGW. I did not further investigate the issue since the aforementioned hack worked for me without any observable issues.

ctrueden commented 8 years ago

Fantastic, thank you!