anotherInstanceStarted doesn't seem to be called in Windows

I’m hoping I’ve misunderstood something, but it doesn’t seem like the anotherInstanceStarted() method is ever called when starting multiple instances of the same GUI application in Windows (10 Pro in this case).

I’ve made a bare bones reproduction here:
https://github.com/hobwell/AnotherInstanceTest

The app simply creates a logger and logs a message to a file on the desktop. The message in the anotherInstanceStarted() method never appears in the file, no matter the number of concurrent instances.

I’ve confirmed that moreThanOneInstanceAllowed is set to true (it is logged in the file).

The repro was built using JUCE 8.0.6, but I couldn’t find a previous version that would succeed in calling the method, which makes me think I mis-understand how this function is supposed to work.

My expectation is that anotherInstanceStarted() would be called after initialise() if there was already an instance of the app running. This should lead to “anotherInstanceStarted ()” being added to the log file, but I’m not seeing that.

Any insights?

Sorry for the late reply but I’ve had the same issue and found our problem.
anotherInstanceStarted() is not called unless moreThanOneInstanceAllowed() returns false