Hi, as the title says i want to know what is the best way to let the processor know when the Editor window is open or closed, i’m trying to implement the meter in the InterAppAudioEffect Demo of Juce in my Vst, but the demo work only in standalone and crash in the vst because appearently in the processBlock pass constantly infos to the Editor but if the window close it crash, so i created a Bool parameter that in the constructor set true:
and in the deconstructor set false:
then in the processBlock check for that parameter and pass the infos to the editor only when the parameter is true, it work good and the meter work fine opening and closing the window, but when i close Studio One, after it’s closed give the message that the application closed unexpectedly so, technically doesn’t harm the functionality because crash only when you are closing the DAW, but it’s pretty ugly, so i want to know, if it is something related to Studio One or what i’m doing is wrong and i should use a different way to check if the editor is open or closed? As a separated topic i would also to know if that Juce Demo is the best resource to implement a meter or there are better ones that im missing.
Thx in Advance