In my QuickWin program I display a dialog by
But sometimes the dialog won´t come up. The thread seems to be stuck somewhere inside dlgModeless, no error message is being given. Sometimes the dialog comes up as it should.
Funny thing: It does make a difference if the .exe is opened in the explorer, run by Visual Studio or opened by a third party program.