Good suggestion frankie.
I extracted the 'offending' procedure from the big source module into its own source module.
Stripped almost everything down to the bare minimum 1168 bytes non-optimized object file and
a 1110 bytes optimized object file - much better than the two ~97kb files
and the issue is still
exists, thankfully. In addition the ~58 byte difference is consistent with the difference in the 97kb files,
so the issue is captured.
Attached are the two object files and the basic streamlined & stripped down C procedure to the minimum.
Just thinking maybe another approach would be use V11 with optimization on the same code to compare with V12 optimization....
When the code fails the GetOpenFileNameW(&ofn) function
immediately returns false and never even tries to display the open dialogue. Maybe I should add GetLastError() and see if that clarifies anything...
Appreciate any insights you have,
Thanks
John Z
Update: GetLastError says everything is fine even though it failed to display the dialogue . . . oh well