Hi,
I found something odd in FileChooser. If I run it with useNativeBox = true and don’t select any files (press cancel), it crashes. Well, I think it gets blocked.
Same code with useNativeBox = false works fine.
In my class I have the member:
std::unique_ptr fc;
and when a button is clicked I do
fc.reset(new FileChooser("Choose a firmware image to open...", initialFile, "*.txt", **true**));
fc->launchAsync(FileBrowserComponent::openMode | FileBrowserComponent::canSelectFiles,
[this](const FileChooser &chooser) {
String chosen;
juce::Array<juce::URL> results = chooser.getURLResults();
if (results.size() > 0)
{
...
I get the same result in the DemoRunner.exe.
Any ideas about how to solve this?
Thx