>
It would be good to understand first what kind of "invisible frame" we
are talking about. Can you post a complete recipe starting from
"emacs -Q"?
Sure:
emacs -Q
M-x speedbar-window
Use the mouse and move over to the generated speedbar-window, move over anywhere the part where "# Files " (isn't that the status bar) is written and press right mouse button
Effect: Speedbar Window disappears.
Any subsequent attempt to bring the speedbar (M-x speedbar) of the Windows (M-x speedbar-window) back results in the error message "Attempt to delete the sole visible or iconified frame"
This error message also appears when you focus into the speedbar-window and press "Q" (which calls delete-frame).
This might be the actual problem as a speedbar-window is no longer a frame on it's own but embedded into an existing frame and the last visible frame must no be deleted with delete-frame.