Welcome to MSDN Blogs Sign in | Join | Help

Notepad hangs while saving the file

From last few days, I have been experiencing very strange problem.

Problem: When I create a new file in Notepad.exe and click on File+Save or alt+s, it literally hangs when showing the dialog (save dialog to give file name/path). If I wait for more than 2 minutes, it comes out of the hang state and shows me the dialog.

Troubleshooting: I ran procmon (http://www.microsoft.com/technet/sysinternals/utilities/processmonitor.mspx) and saw that notepad.exe was trying to reach "\\jigarm\" machine name. Analysing more, I found that it was there in the Recent History list. Now, the situation is, I had a machine named "jigarm", now I had to format it and new machine name is, "jigarme" So, everytime, I try to save the file, it loads the most recent path and just because "jigarm" does not exist, network access API call, just waits for timeout. (Windows Vista has significant improvement on these kind of hanging kernel calls!)

Resolution: I opened regcrawler (http://www.dcsoft.com/products/regeditx/regcrawler.htm) and searched for all references to "\\jigarm" in whole registry, I found not only notepad.exe but other processes like, windbg.exe and winword.exe having reference to that network machine name in recent save locations.

Stay tuned.. Wave

Published Thursday, May 17, 2007 6:52 AM by Jigar Mehta
Filed under:

Comments

# cif

Tuesday, June 10, 2008 9:43 PM by cif
Anonymous comments are disabled
 
Page view tracker