Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I tried to print a doc in word, and word froze. Is there any way for me to see what resource it's waiting for?

I'm using windows XP and word 2007 (though I imagine the answer doesn't depend on the process that froze)

share|improve this question
1  
Nathan, I think you double-posted, superuser.com/questions/10085. –  James McMahon Jul 21 '09 at 13:55
    
I did! How embarrassing! –  Nathan Fellman Jul 21 '09 at 17:11

5 Answers 5

You may want to look into Process Explorer. You can see what files/folders processes have a lock on.

share|improve this answer
    
And if you double click a process, you can even see individual threads and their CPU usage. –  itsadok Jul 21 '09 at 14:24
1  
Good suggestion, but note that this will tell you what objects the process has open, not what it's waiting on. –  Graeme Perrow Jul 22 '09 at 11:41

This requires a little technical knowledge, but it is possible to analyze hangs with the (free) Windows debugger WinDbg. It requires some work to install, attach to the process, and to get the symbols set up (very important!) but then you can find the cause of the hang with a single WinDbg command (emphasis mine):

analyze -v -hang

This is the one which I hadn’t come across before. Run this after opening a dump from a hung process, and it will determine which thread was responsible for the hang and what it was waiting for. I knew windbg could let you examine handles, show all locks open in each thread, and let you examine them all in detail. But I didn’t realise that with !analyse, windbg can do the hard work for me – examining locks held open by all threads, determining which threads are waiting for which others, and build up an order to work out which was initially responsible for the hang.

source

Also Advanced Windows Debugging by Mario Hewardt, Daniel Pravat is a very good book to get you started with WinDbg: The first few chapters give a very detailed overview of debuggers, and how to use WinDbg specifically. The rest of the book is filled with detailed debugging case studies, which you don't have to read. I think there is a case study describing how to debug a hang which will be of interest to you, however.

After you find the cause of the hang, you may even be able to unhang it with more advanced debugging techniques^^

share|improve this answer

As far as I know, there isn't. You could hook up something like Wireshark to see if you could find something in the network traffic to indicate what it's waiting for, but it's quite a bit overkill and hardly likely you'd find anything.

share|improve this answer

Since its print you were trying, i wonder if the Windows network-search was invoked and Word was just waiting for all the network printers were being mapped for a selection.
Do you have a locally connected Printer? and, are you on an enterprise network domain with shared printers?

share|improve this answer

Watch the process explorer videos "The case of the 200x" in which the author shows diagnosing several troubleshooting scenarios including hangs. This is also where the ctrl-scrolllock-scrolllock forced crash can help with diagnosis.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.