I’m studying the sample host code, and I see that, in gPluginWindow::closeAllCurrentlyOpenWindows(), the following code is executed after deleting the GUI windows:
Component dummyModalComp; dummyModalComp.enterModalState(); MessageManager::getInstance()->runDispatchLoopUntil (50);
I was wondering what was its use? Do some plugins require some time to clean up their GUI? Is there a risk of crashes if I do not do the same in my host?
Thank you very much for your help.