Starting and stopping a service causes Windows 7 to get into a bad state


  • Hello,

    When repeatedly starting and stopping a service used by an application being developed, eventually Windows gets into a state where the following is observed:

    - Mozilla Firefox will not start (immediately crashes upon start-up)

    - Windows Photo Viewer will not start-up upon trying to open a picture with it or preview a picture

    - Internet Explorer starts, but the address bar does not work, the Bing search bar does, navigation works, but right-clicking produces no menu

    - Visual studio UI test builder fails to recognize some controls that it did previously (controls embedded in a toolbar), but still recognizes others (winbuttons)

    And these are just the issues that I've noticed.

    Task manager, resource monitor, event viewer, and sfc /scannow all reveal nothing out of the ordinary. The problem persists regardless of what I do until I restart, which causes the problem to resolve.

    Does anyone here have any idea what resource the service continues to hold on to/is being starved in order to cause these symptoms?

    Wednesday, June 22, 2011 6:36 PM

All replies

  • Nothing short of properly communicating with the SCM. If you can post some code, that'd be helpful.
    Thursday, June 23, 2011 9:07 PM
  • You can inspect the problematic processes that are growing or hung using Windows Sysinternals Process Monitor. It gives you greater detail into the processes that are running and is free.

    "Process Monitor is an advanced monitoring tool for Windows that shows real-time file system, Registry and process/thread activity. It adds an extensive list of enhancements including rich and non-destructive filtering, comprehensive event properties such session IDs and user names, reliable process information, full thread stacks with integrated symbol support for each operation, simultaneous logging to a file, and much more. Its uniquely powerful features will make Process Monitor a core utility in your system troubleshooting and malware hunting toolkit."

    You can download it here ...

    I would also recommend AutoRuns, and is free as well.

    "This utility, which has the most comprehensive knowledge of auto-starting locations of any startup monitor, shows you what programs are configured to run during system bootup or login, and when you start various built-in Windows applications like Internet Explorer, Explorer and media players. These programs and drivers include ones in your startup folder, Run, RunOnce, and other Registry keys. Autoruns reports Explorer shell extensions, toolbars, browser helper objects, Winlogon notifications, auto-start services, and much more. Autoruns goes way beyond other autostart utilities.

    AutorunsHide Signed Microsoft Entries option helps you to zoom in on third-party auto-starting images that have been added to your system and it has support for looking at the auto-starting images configured for other accounts configured on a system. Also included in the download package is a command-line equivalent that can output in CSV format, Autorunsc."

    Available to download at

    With these two tools it should nail your problem. 

    Please mark answered and close this thread.

    Monday, July 25, 2016 3:48 PM