Well, to me that looks like broken linker, not the compiler as it compile it from already built
dcu and it works fine, so the linker most likely has uninitialized variable somewhere, for the first run builds fine, the next is broken, (like something for the first run was zero but later build it is not cleared)
May be a step to confirm the linker involvement, (see the translation form English is "Difference between "Create" and "Compile" - Settings" and i don't have such thing as create !)
1) drop the project and click compile
2) make sure it runs
3) in the
dpr file, add a space in the source, just to mark the file as changed and force the compiler to rebuild it, we need the compiler to compile/build only the
dpr file.
4) click compile not "Erzeugen"
5) Will it run fine ? or it will be broken ?
Also and it is highly important and might be helpful, copy the 2 EXEs and keep them for later to compare to see what went wrong with the linker.