If an application decides to pop up a subform of a main form by exiting from the main form DQ, calling DQ on the subform, and then returns to DQ of the main form, events like a GotFocus which is aimed at returning focus to the main form may arrive at a time where DQ is done with the subform, but has not resumed DQ of the main form. The logic decides that "all forms being DQd have been expunged" and incorrectly exits from DQ.
If an application decides to pop up a subform of a main form by exiting from the main form DQ, calling DQ on the subform, and then returns to DQ of the main form, events like a GotFocus which is aimed at returning focus to the main form may arrive at a time where DQ is done with the subform, but has not resumed DQ of the main form. The logic decides that "all forms being DQd have been expunged" and incorrectly exits from DQ.