You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How do I remove an "orphaned" window from a closed application?

Hi,

Every now and then, I end up with an "orphaned" window on my desktop, left over from a closed application. Currently, I have a login window from the Screen Sharing application that's been spinning the spoked progress wheel next to "Connecting..." for an hour or so. I've already closed the Screen Sharing app, so it's not a straightforward thing to go into Activity Monitor and kill the process. I know that I can reboot the machine to fix this, but I'm wondering if someone might know how to fix this sort of thing without a reboot. Is there some app that I can use that can tell me what process is the "owner" of this window? Since the progress wheel is spinning and I can drag the window around, it would seem that some process has control of it, but I just don't know which one.

Thanks,

Ken

12 G4 PowerBook, Mac OS X (10.5.8), 1.125 Gb RAM

Posted on May 20, 2010 8:39 PM

Reply
7 replies

May 24, 2010 11:51 AM in response to Kenneth Hjulstrom

HI Kenneth,

Open Activity Monitor (Applications/Utilities)

From the pop up menu top right select My Processes

Select the application you said you closed then click the Red Force Quit button. Quit Activity Monitor.

Open System Preferences/Sharing to make sure Screen Sharing isn't selected under Service on the left.

Here's a tip. Instead of just closing a window when you are finished with an application, instead from the Menu Bar (top of your screen) click File/Quit or on your keyboard Command + Q















Carolyn 🙂

May 24, 2010 12:06 PM in response to Carolyn Samit

Hi Carolyn,

Thanks for the information, but maybe I didn't clearly explain what happened. I had the Screen Sharing app open, and then I properly closed it down by quitting the application. But one of its windows remained on the desktop. I went into Activity monitor, and the Screen Sharing app wasn't listed in the process list at all. So I'm guessing that this window isn't owned by the Screen Sharing app itself, but from some other process that was spawned by the Screen Sharing app that didn't close when I shut down the Screen Sharing app. Granted, this situation doesn't come up very often, but I've also seen it happen with Norton Antivirus, if I dismount a volume while there's a popup window doing a "scan on mount", with the result that the "scan on mount" window doesn't go away. So given that the process with the "friendly" app name no longer appears in Activity monitor, can you suggest any way to determine which of the running processes "owns" the still-present window?

Thanks,

Ken

May 24, 2010 2:06 PM in response to Kenneth Hjulstrom

Hi,

I take it the Red Button does not close the window in these circumstances ?

If you relaunch the App and then use the Red Button and Quit the app does that work ?
OR has the app lost contact with it completely ?

If the Red Button does not close the Window does the Window menu for this App show the window listed ?

In Activity Monitor does the Windows Server show any Hangs ? (in the top bar/surround).

Just some ideas.

User uploaded file

10:05 PM Monday; May 24, 2010

Message was edited by: Ralph Johns (UK)

Removed iChat blurb from sig info

May 24, 2010 2:29 PM in response to Ralph-Johns-UK

Hi Ralph,

Thanks for the suggestions. The red button in Activity Monitor probably would work, if I knew the name of the process that owned the window. But whatever that process is, it's not the one with the name of the Screen Sharing app that caused it to appear, because the Screen Sharing app no longer appears in Activity Monitor's process list. I did try restarting the Screen Sharing app and closing it, thinking that it might be able to reconnect to the window orphaned from its last invocation, but this didn't work. I still think that what probably happened is that the Screen Sharing app spawned a new process to handle the connection process, and it's this process (whose name I don't know) that's the owner of the window.

Ken

May 25, 2010 11:33 AM in response to Kenneth Hjulstrom

Hi Kenneth,

I did mean as Romad has posted and you seemed to have partially covered in the later part of your post.

So Restarting the app does not link up the Window again.
( and presumably does not show if that app has a Window Menu)

The Console Logs would be the next place to go.

If you have this Open when you start a Screen Share you will see the App lists as it starts up.
It may also mention any Respawning it does which may provide clues.

User uploaded file

7:33 PM Tuesday; May 25, 2010

How do I remove an "orphaned" window from a closed application?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.