The following code crashes when popup menu is visible and I exit the software in OSX. How to use PopupMenus so they don’t crash?
void MyClass::mouseDown(const MouseEvent& e)
pop_up_menu.addItem (1, “item 1”);
pop_up_menu.addItem (2, “item 2”);
const int result = pop_up_menu.show();