FileBasedDocument saveAsInteractive crash on Windows in GetSaveFileNameW

This is my first post as a Juce newbie.
I am using FileBasedDocument->saveAsInteractive(true) on Windows 10 and it works fine until I want to create a new directory for the file to go in using a right-click whereupon it gives an access violation in GetSaveFileNameW. I’ve looked at the OPENFILENAMEW passed to this and it seems OK to me. MS documentation suggests that from Vista and beyond one should use “Common Item Dialog” in preference. I’ve searched MSDN etc. but have not seen similar errors.

Hold on! I think I’ve reproduced this outside of Juce. I suspect I have some suspect shell extension but I guess this might help someone else for the record

Release build does not crash.