AlertWindow inside AudioPlugin

Logically I cannot interact with UI inside AudioProcessor::processBlock because it is called by the audio thread.
But can I use a UI functions in other functions of my filter class?

I.E. Can I display a message box (using the AlertWindow class) inside my filter class constructor or inside setStateInformation ?

Thank’s for your help.

No - there’s no guarantee which thread a host will use to call those functions. Better to post yourself a message and do the UI in response to the message.

Ulp… Thank’s for your speed :smiley: