I have a Delphi 2007 application which has been working fine on most machines & Windows versions but now is exhibiting the following behavior for four customers.
The application briefly flashes a bit of UI(too quickly to read). It doesn't appear to be the entire main window; maybe just a message window, etc.? Then it is no longer visible. The application is not listed on the Applications tab of Task Manager; it has to be killed from the Processes tab.
The above happens sporadically for most customers but always occurs for one customer (who runs Windows 10; the other customers are Windows 7 & 8)--so this customer cannot run the application at all (they were running it just fine until recently).
Unfortunately we cannot duplicate this behavior in house, so I've sent out diagnostic versions of the application liberally instrumented with CodeSite message calls. The CodeSite logs reveal that the application hangs in Application.Run, but none of the mainform's events ever get called (I've instrumented all of them with CodeSite message calls), so the hang must occur very early in message loop processing.
Because the problem is only on remote users' machines, I cannot step through it with the debugger. What's the best way to try to debug this?
I would like to add PeekMessage(), etc., calls in the message loop and output those via CodeSite to see if I can find what message results in the hang, but don't know how to get that done since Application.Run is in the Forms.pas system VCL source.
I'd appreciate any ideas.