Announcement

Collapse
No announcement yet.

Killing Zombie Windows in Microsoft Visual C++

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Killing Zombie Windows in Microsoft Visual C++

    When you use Microsoft Visual C++, and make Debug builds with it, they often open up Command Prompt, or DOS windows, which contain some numbers, and close when the program gets closed. If you force it to close from within the Visual C++ debugging window, you sometimes end up with Zombie Windows, or windows that won't close, don't show up in the task manager, and cause the computer to hang when you try to shut down or reboot it, which forces you to perform a hard shutdown(hold the power button in, or pull the plug).

    The resolution I came up with isn't preventative, and there are plenty of sites that list a set of service packs that can be uninstalled to prevent it from happening, but this isn't about that fix. This lets you fix the problem when it happens, at least, enough to shut down safely, and have a minimal risk of any errors because of it.

    The instructions require Sysinternals Process Explorer(Download: http://download.sysinternals.com/Fil...ssExplorer.zip) (Info: http://technet.microsoft.com/en-us/s.../bb896653.aspx)

    The instruction list after you run Process Explorer is as follows:
    1. Right Click csrss.exe near the start of the list
    2. Go to properties
    3. Select the Threads tab
    4. Find winsrv.dll 0x1e82 at the end of the list.
    5. There may be more than one entry, so click either one.
    6. Click the Kill button and press OK to kill it. Repeat for any other entries of winsrv.dll 0x1e82.
    7. Reboot the computer. Anything you had running at the time should still work enough to save and close, but you won't be able to open new windows until you reboot.

    Here's an image of what the process looks like, in general, with numbers:

    This reality is mine. Go hallucinate your own.

  • #2
    thanks ugetab. this will come in handy
    Cant stand the 32 bit and above gaming.
    Gamers for the return of 2d sprite filled games!

    Comment

    Working...
    X