Skip to main content
Known Participant
April 7, 2015
Question

IDBase_UI_Dialog::Destructor not always called when dialog exits?

  • April 7, 2015
  • 1 reply
  • 249 views

Hi,

We're having an intermittent issue with one of our dialogs on CC 2014 on Mac 10.8.  It's a Moveable Modal dialog and sometimes when it is closed, the next time it opens the dialog come up but IDialog::Open returns immediately rather than blocking as you would expect for a Modal dialog.

Having used the trace, what appears to be happening is that when the dialog is closed, when it works properly the last thing that InDesign does is:

DVModalDialogWindow::Destructor

DVWindow::ReleaseWindow deleting drover OS_Window for 3b50e600

IDBase_UI_Dialog::Destructor

but when it doesn't work, these three lines do not appear in the trace.  Could we be doing something that would cause this?

Can anyone shed some light on this?

Thanks,

Dan Tate

This topic has been closed for replies.

1 reply

Dan TateAuthor
Known Participant
April 8, 2015

I have found a workaround for this: when the IDialog::Open returns immediately, the IDialog::IsOpen returns true, so I can trap it.  If I then call IDialog::SetDeleteOnClose(true) and then IDialog::Close, then the dialog does close properly and opens correctly the next time.

I'd still like to know why I am getting into this state in the first place though.

For further information, this seems to happen less frequently (if at all) on CC 2014 10.1, but happens fairly regularly on 10.0 - was anything changed in this area between the two versions?

Thanks,

Dan Tate