Occasionally I see this issue and cannot remember how it was solved.
Issue:
On a new object nomads Dialogue panel copied from a template panel and modified, the Cmd_Str$="End" will run the ON_EXIT and ON_DELETE logic, but the panel hangs there active. Using a tested program structure template so both procedures have return values of 1. Using Developer package windx to connect to a Centos system. Using a bunch of objects but moving them around between on_delete and on_exit makes no difference. Putting an extra Cmd_Str$="End" in the on_exit does nothing either.
I think the solution last time was to delete the nomads entry and re-create the panel.
This panel is very large and complex to reenter manually.
Any ideas why this is happening?
After exporting and reimporting and still no joy, I realized the template had lost the local return flags so ON_EXIT and ON_DELETE were returning 0.