I have a program I wrote in Delphi XE8, which previously worked properly, but which now starts with little more than the title bar visible. To be precise, for a split second the full form is visible, but then it collapses to a height of 37 pixels; not even enough to fully display the menu bar.
I couldn't remember that this version of the program had any recent changes, but I checked previous versions of the program, and they all behave the same erroneous way. I copied the .exe file to another computer and there the program still works fine.
I tried to find any bug in the code by selectively commenting out modules. In the end there was NOT A SINGLE line of code in the source anymore, but still the same problem. Then I replaced the main (and only) form, where I removed any code, by a new and empty form. This way any wrong parameters with on form components would be put aside. The problem STILL was there! So I figured it had to be the project file. Compared byte by byte with another, working project source file: no differences whatsoever. Even when I replaced the code from the erroneous project file with that of the OK project file (copy-paste) the error persisted.
Creating a completely new VCL application: no problems whatsoever. Neither with other projects. I seriously ran completely out of ideas now (which may be a clue that it's something rather banal).
Anyone with similar experiences? AND preferably a solution? If you need more information, shoot! Did I say that the behavior started with a .exe file which worked properly earlier on, and that it still works on another PC?
TIA Steven
Edit
Both PCs mentioned have the same Windows 10 version:
Home Edition,
Version 1903,
Build 18362.535