Just thought I'd pass along an anecdote about a program problem that I recently had and what fixed it in case someone finds it interesting. I just finished phase 1 of a Lazarus prototype demonstrator program but one thing that had bothered me for a long time was that often when this WindowsXP based program was run on Windows10 in non-compatibility mode a brief message would sometimes appear at the top of the opening form which read "(Program Not Responding)". I believe that that this message was a false positive message and it gives a false impression that the program may have problems, which it doesn't.
The opening form didn't do anything that would justify that unflattering message.
To fix it I made a copy of all the buttons, text and everything else on that opening page as well as a copy of the code which runs that page and then I destroyed that opening page and removed it from the program entirely. I recreated it, added the copies of the code and page contents, reconnected them and put it all back into the VirtualU program.
I didn't change the code or anything else in any way. The new opening page was an exact duplicate of the previous opening page.
The result is that now this program never appears with a Windows (Program Not Responding) message.
Not ever.
I'll probably never know what caused this anomaly.
Whatever was causing this message to appear was fortunately removed somehow during the destruction and subsequent resurrection of that form. Sort of what happened to Lazarus, hah, hah. Best wishes.