# Logic Pro: Plugin Editor Destructor not always called on window close

**URL:** <https://forum.juce.com/t/logic-pro-plugin-editor-destructor-not-always-called-on-window-close/54865>\
**Category:** General JUCE discussion\
**Created:** [February 3, 2023, 5:29pm UTC](https://forum.juce.com/t/logic-pro-plugin-editor-destructor-not-always-called-on-window-close/54865 "2023-02-03T17:29:47Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![railjonrogut](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/railjonrogut/32/505_2.png) [@railjonrogut](https://forum.juce.com/u/railjonrogut)\
**Post date:** [July 23, 2024, 9:10am UTC](https://forum.juce.com/t/logic-pro-plugin-editor-destructor-not-always-called-on-window-close/54865/21 "2024-07-23T09:10:42Z")

</div>

> [@Dialogs on plugins, modal, non modal](https://forum.juce.com/t/dialogs-on-plugins-modal-non-modal/11889/1):
>
> I need some yes/no type alerts in my plugin. I've had several attempts at this and keep running into, to my opinion, silly problems. I've been reading the forum and have really gotten nowhere. My fisrt attempt was to simply popup a modal alert window synchronously (my use of terminology may be incorrect so please bare with me), but i'm unable to destroy the window if the host quits while it is visible. So, after reading a bit, i learnt that modal inline dialogs are a no no anyways. I have yet t…

[Previous page](https://forum.juce.com/t/logic-pro-plugin-editor-destructor-not-always-called-on-window-close/54865.md?page=1)
