PopupMenu causes crash

I’m using a PopupMenu in my AU plugin. If I open the PopupMenu and close the GUI window for the plugin, the PopupMenu stays - and when clicking inside it, it causes the AU Host to crash. I tested this with Logic 7.2

I notice some host do not allow to close the application/window before the PopupMenu is clicked - but Logic is one of the hsot that does allow this.

Is there a way to get around this?


Martin Saleteg