I seem to be experiencing a really strange crash that only occurs on MacOS in release mode. It’s been really difficult to track down but I have managed to figure out where it is happening.
I have a class that is being loaded when it crashes and this class has a juce::CriticalSection as a member variable. I have commented out all of the places that the CriticalSecion is used and if I remove the CriticalSection member variable from the class then I do not experience a crash.
It’s a very strange problem. Does anyone know how adding a juce::CriticalSection to a class could cause a crash only in run mode on MacOS?
Any help would be much appreciated!