Windows Explored

Everyday Windows Desktop Support, Advanced Troubleshooting & Other OS Tidbits

Troubleshooting and Resolving a Hang in 90 Seconds

Posted by William Diaz on June 3, 2011


I’m a stickler when it comes to performance issues on my workstation. So it bothered me when I noticed a small delay when right clicking on my desktop. By small, I mean literally 2 seconds. I opened SysInternals Process Explorer to quickly see if the CPU was spiking:
image_thumb_1_028E6399
I looked at the all the processes to see which process was the offender but the 45-60% CPU time was the total of several processes. After the menu opened and a few seconds later the CPU% would drop down to a normal 0-1%.

30 Seconds…

Normally, when I deal with a hang, I dump the process and examine it with WinDbg. But this was not a typical hang caused by a deadlock or the OS waiting on some external resource. It was too short-lived to dump but still annoying enough that I wanted it gone.

I started by opening WinDbg from the Windows Debugging Tools. I wanted to attach to the process involved in opening the right-click menu, which is explorer.exe, the Windows user shell. I did this by simply going to File > Attach to a Process and selecting the explorer.exe process. After clicking OK, Windbg breaks into the process, which suspends it, rendering it unresponsive. To resume the process, simply type g (go) or F5. At this point, all I needed to do was recreate the issue by right-clicking the desktop and see what module was loaded in into explorer:
image_thumb_6_028E6399
Right-clicking on the desktop loads atiadlxx.dll, which is part of the ATI Catalyst Control Center, and also an option in the context menu:
image_thumb_5_028E6399
30 seconds…

Since I didn’t have time for upgrading, downgrading, or reinstalling display drivers, I turned to SysInternals Autoruns to disable the context menu option. Finding it was a simple matter of going to one of the different ContextMenuHandlers locations in Autoruns and unchecking the likely registry entry that loads this into the menu:
image_thumb_7_028E6399
Although the dll is not the same as that indicated by WinDbg, they are part of the same shell components. Afterwards, the right-click on the desktop delay was gone.

30 seconds.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

 
%d bloggers like this: