Not sure if there’s a way around this, but here we go…
Basically, to display internal link modal dialogs/windows, I’ve been using
something similar to:
widg = ApCreateModule(…);
ApModalWait(widg, AP_MODAL_BLOCK | AP_EVENT_PROCESS);
This works wonderfully and is so simple compared to many of the examples
given. I have just recently found one problem with this implementation. If
I destroy the widget during it’s REALIZE callback, the widget does get
destroyed, but then ApModalWait appears to modal block waiting for a widget
to be destroyed that was already destroyed.
Any ideas on a nice way around this?