Delphi XE and ShellExecute glitch
Just encountered a strange bug in one of my programs when running it from the Delphi XE IDE on Windows 10.
Triggering a TBrowseURL action with a valid URL property value causes the program to hang and the default browser (Chrome) is not displayed. The BeforeBrowse event is triggered, but AfterBrowse is not until the program is closed. Sometimes the program hangs and I have to close it with Ctrl+F2.
Running the same code outside the IDE works correctly, but running the program either with or without the debugger in the IDE makes no difference.
I've tracked this down to where TBrowseURL calls ShellExecute from the ShellAPI unit. If I call ShellExecute directly I get the same problem.
I never noticed this problem before when running Windows 7 on my old laptop - it just seems to have started on my new Windows 10 laptop. Still, it's possible the bug was still there on the old machine and I just never noticed it, but I doubt it.
Anyone else had this problem? Any ideas what may be causing it?