Visual Studio 2005 in CPU Loop

Giganews Newsgroups
Subject: Visual Studio 2005 in CPU Loop
Posted by:  Stewart Berman (saberman@nospam.nospam)
Date: Fri, 03 Apr 2009

I am trying to create an application in VB.Net using Visual Studio
2005.  Every now and then Visual Studio 2005 goes into a hard CPU
loop.  The devenv.exe is using 50% of the total CPU capacity of the
machine -- roughly half of each processor.  I have to kill the
application and restart it.

This is a relatively new project.  It has only the GUI for the first form which had a total of three
SplitContainer controls, nine Button controls and one DataGridView control.

I ran Process Monitor:
"Time of Day","Process Name","PID","Operation","Path","Result","Detail","TID"
"5:11:29.2144065 PM","devenv.exe","7224","CreateFile","C:\Program Files\Microsoft Visual Studio
8\Web\webprojectitems.old","NAME NOT FOUND","Desired Access: Read Data/List Directory, Synchronize,
Disposition: Open, Options: Directory, Attributes: n/a, ShareMode: Read, Write, Delete,
AllocationSize: n/a","6440"

The line above is repeated approximately ever six seconds.  It appears to be trying to create a file
in:
    "C:\Program Files\Microsoft Visual Studio 8\Web\webprojectitems.old
and getting a NAME NOT FOUND error.  Which is reasonable since there isn't a "webprojectitems.old"
directory under "C:\Program Files\Microsoft Visual Studio 8\Web\."

This is for a simple Windows Forms project with no web components.

I created a directory:
    "C:\Program Files\Microsoft Visual Studio 8\Web\ebprojectitems.old"
and got the following two event messages in Process Monitor:

"5:25:07.7831595 PM","devenv.exe","7224","CreateFile","C:\Program Files\Microsoft Visual Studio
8\Web\webprojectitems.old","SUCCESS","Desired Access: Read Data/List Directory, Synchronize,
Disposition: Open, Options: Directory, Attributes: n/a, ShareMode: Read, Write, Delete,
AllocationSize: n/a, OpenResult: Opened","6440"

"5:25:07.7835504 PM","devenv.exe","7224","NotifyChangeDirectory","C:\Program Files\Microsoft Visual
Studio 8\Web\webprojectitems.old","","Filter: FILE_NOTIFY_CHANGE_FILE_NAME,
FILE_NOTIFY_CHANGE_DIR_NAME, FILE_NOTIFY_CHANGE_ATTRIBUTES, FILE_NOTIFY_CHANGE_SIZE,
FILE_NOTIFY_CHANGE_LAST_WRITE","6440"

It is still in a CPU loop but no longer generating events that Process Monitor can see.

The original error was in CreateFile.  The last two entries above indicate it was successful but the
directory is empty.

Anyone want to take a guess as to what is going on?

Replies