Since you said, it happens only on a console application, did you create a ScopedJuceInitialiser?
This is needed to run anything asynchronous and to delete all the Singletons at shutdown.
Thanks a lot!
That make the browseForDirectory work in Release, but there’s still some memory leaks found in debug build:
Detected memory leaks!
Dumping objects ->
{238} normal block at 0x00000255DCEF7C70, 32 bytes long.
Data: < * > 00 BE 2A 9C F6 7F 00 00 01 00 00 00 CD CD CD CD
{209} normal block at 0x00000255DCE917F0, 32 bytes long.
Data: < * > 00 BE 2A 9C F6 7F 00 00 01 00 00 00 CD CD CD CD
Object dump complete.
I just added one line of code: ScopedJuceInitialiser_GUI s;
in the beginning of the main method in the console project.
Is there still some steps I was missing? or this might be a juce bug?