Windows Vista – Application hangs upon exit if print dialog is open
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.
For more information on this issue, including potential causes, workarounds, and resolutions, see: Microsoft KB Article KB2616023.