And now it's not happening anymore and the release mode EXE runs fine.
Full moon or something? :P
We call this "demo effect" at work when everything works OK until you show it to someone - then it goes pear-shaped for some reason nobody can explain. And of course it returns to its normal behauvuour later...