This is the strangest thing I've seen in a while. I have not been able to duplicate it in a simple example, but am still trying. I tried posting this in ClearWin+ but it kept erroring out on me.
My application has two specific kinds of function calls to use Windows dialogs, specifically, the browse_for_folder1@ and get_filtered_file@.
When the app is started, normally the user would select a folder using a callback function that asks for a folder to be selected. Then, a file would be selected. When the file is selected, the code immediately returns (no dialog displayed) and indicates the user had cancelled the file selection. Again, no dialog is displayed, so this is some kind of default behavior.
If, however, I wait to about a count of 20-30 seconds, then select the file button, the dialog appears, and selections can proceed. I can perform as many file selections as I like.
If I then select the folder selection button again, I will have to wait another 20-30 seconds to be able to select the file.
This occurs on two different machines, and two different versions of Windows 10 (Home and Pro).
In a different application, selecting a folder never happens. No matter how long I wait, the button that invokes the browse_for_folder1@() function always returns as if the cancel button on the dialog was selected. I will save this one for later.
I have a couple of questions: (1) Has anyone seen this behavior, and if so, (2) How did you mitigate its effects? (3) Is there another way to use iFileDialog that might alleviate these kinds of problems? According to the MSDN website, this is the preferred way to do these kind of operations. Whether that is actually true under Windows 10 or not, I cannot say.