When an application opens two unrelated visible windows, and the main window invokes the Print dialog, the application may hang when terminating. This can occur under the following conditions:
- An application opens two or more unrelated visible windows.
- The main window invokes a Print dialog.
- The main window does not destroy the other windows on receipt of WM_DESTROY.
- The user attempts to exit the application by closing the main window.