.NET Framework - Visual Studio 2005 in CPU Loop

Asked By Stewart Berman
01-Apr-09 10:16 PM
Windows XP Pro SP3 with all critical updates.
AMD Dual Core

I have a number of Microsoft Products installed on this machine:
Office 2000 Pro
Office 2002 Pro
Office 2003 Pro
Office 2007 Ultimate
Visual Studio 6
Visual Studio 2005 Professional
Visual Studio 2008 Professional

All of the above were installed in order and all updates applied before the next version was
installed.

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.
Unfortunately, even though there are files in the backup directory it doesn't open the dialog box
asking if I want to use them so I lose any unsaved work.  (Which means I have to save very often.)

This seems to be associated with saving the project.  That is it happens most often when I select
File\Save All although it has happened occasionally when I select Debug\Start Debugging.  The last
time I opened the project and dragged a Picture box control onto one of the Panels of a Split
container control.  I then selected File\Save All and Visual Studio 2005 went into a CPU loop.

After I kill Visual Studio 2005 there are three entries in the event log:

Event Type:	Error
Event Source:	Application Hang
Event Category:	(101)
Event ID:	1002
Date:		4/1/2009
Time:		10:11:14 PM
User:		N/A
Computer:	NYSABW0007
Description:
Hanging application devenv.exe, version 8.0.50727.762, hang module hungapp, version 0.0.0.0, hang
address 0x00000000.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 41 70 70 6c 69 63 61 74   Applicat
0008: 69 6f 6e 20 48 61 6e 67   ion Hang
0010: 20 20 64 65 76 65 6e 76     devenv
0018: 2e 65 78 65 20 38 2e 30   .exe 8.0
0020: 2e 35 30 37 32 37 2e 37   .50727.7
0028: 36 32 20 69 6e 20 68 75   62 in hu
0030: 6e 67 61 70 70 20 30 2e   ngapp 0.
0038: 30 2e 30 2e 30 20 61 74   0.0.0 at
0040: 20 6f 66 66 73 65 74 20    offset
0048: 30 30 30 30 30 30 30 30   00000000

Event Type:	Error
Event Source:	.NET Runtime
Event Category:	None
Event ID:	1023
Date:		4/1/2009
Time:		10:11:15 PM
User:		N/A
Computer:	NYSABW0007
Description:
.NET Runtime version 2.0.50727.3082 - Fatal Execution Engine Error (7A2E1132) (0)

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Event Type:	Error
Event Source:	Application Hang
Event Category:	None
Event ID:	1001
Date:		4/1/2009
Time:		10:11:28 PM
User:		N/A
Computer:	NYSABW0007
Description:
Fault bucket 355320355.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 42 75 63 6b 65 74 3a 20   Bucket:
0008: 33 35 35 33 32 30 33 35   35532035
0010: 35 0d 0a                  5..


Anyone else having this problem?

I would try repairing the installation but I don't think I can I repair Visual Studio 2005 without
uninstalling Visual Studio 2008.
Windows XP
(1)
Visual Studio 2008
(1)
Visual Studio 2005
(1)
Office 2007
(1)
Office 2003
(1)
Office
(1)
  Andrew Morton replied...
02-Apr-09 05:15 AM
Have you tried leaving it a couple of hours to get on with whatever it isn't
telling you it's doing?

I appeared to have the same problem with VS2008 as it seemed to be that it
wanted to look at every one of the umpteen-thousand files I had in some
subdirectories of the project. After letting it get on with it a couple of
times, it has been OK since (famous last words :-)

You could use FileMon to see if it really is looking at files.

Andrew
  Stewart Berman replied...
02-Apr-09 03:59 PM
This is a relatively new project and only has 51 files in 10 folders.  It has only the GUI for the
first form which had a total of three SplitContainer controls, nine Button controls and one
DataGridView control.

The longest I let it run was eight minutes of CPU or about 15 minutes elapsed -- which should have
been enough time to take 51 files, separate them into one byte files and put them back together
again.

How do you do RAD using a system that can hang for hours at a time doing a save files?
  Stewart Berman replied...
02-Apr-09 05:37 PM
I ran Process Monitor:
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:
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:
and got the following two event messages in Process Monitor:

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"

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?
Create New Account
help
form previous VS .NET Framework In the past converted an application written in an old (<2005) VS to VS 2005. Of the application I would like to change the layout. But it would appear that problem? It would be too much work to completely rewrite the application. Zach. C# Discussions Visual Studio (1) ComponentResourceManager (1) ContentAlignment (1) GraphicsUnit (1) EventHandler (1) FontStyle (1) CheckBox (1) TextBox (1) Is this a Windows Forms application? If so, there ishould be a region titled is not totally packed with InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(InvoiceForm)); this.textBox17 = new System.Windows.Forms.TextBox(); this.textBox15 = new System.Windows.Forms.TextBox(); this.textBox7 = new System.Windows.Forms.TextBox(); this.textBox6 = new System.Windows.Forms.TextBox(); this.textBox5 = new System.Windows.Forms
so. Jetzt "hast" Du das Control, bzw. den Handle des Controls. Du kannst / solltest nun Windows-APIs benutzen, keine managed Control-Klasse, denn es sind ja ggf. unmanged Controls. Die Frage Weiter sind auch die Grenzen und Seiteneffekte von GetWindowText beschrieben. Thorsten D?rfler - - Microsoft MVP Visual Basic vb-hellfire visual basic faq | vb-hellfire - einfach anders http: / / vb-faq.de / | http: / / www.vb-hellfire.de schrieb: Wenn das so w?re, w?re es dokumentiert. Thorsten D?rfler - - Microsoft MVP Visual Basic vb-hellfire visual basic faq | vb-hellfire - einfach anders http: / / vb-faq.de / | http: / / www.vb-hellfire.de dotnet / faqs / > Hallo Stefan! Stefan Simon schrieb: Bei benutzerdefinierten Fensternachrichten, wie "WM_GETCONTROLNAME" eine ist, ?bernimmt Windows nicht automatisch das Marshalling der Parameter. Deshalb kann nicht einfach ein Puffer an 'SendMessage' ?bergeben und nicht den des fremden Prozesses, aus dem die Daten ausgelesen werden sollen. Deshalb kann Windows die Daten nicht erfolgreich in den Puffer kopieren. L?sung: Der Puffer mu? f?r findet sich in folgendem Artikel, dort wird auch explizit auf die Thematik eingegangen: Automatisieren von Windows Forms - - M S Herfried K. Wagner M V P <URL:http: / / dotnet.mvps.org / > V
bei jedem neustart, was ist da faul ? Danke für Hinweise Karsten Schulz VC - German Discussions Visual Studio 2008 (1) Visual Studio (1) Office (1) CorrectSpellT (1) SPMicrosoft (1) Directories (1) Heritage® (1) Houghton (1) Hallo Karsten! Welche VS of Programming FAQ: http: / / www.mpdvc.de Samples: http: / / www.codeproject.com Hi Martin, Microsoft Visual Studio 2008 Version 9.0.30729.1 SP Microsoft .NET Framework Version 3.5 SP1 Installed
compile errors .NET Framework I posted this on the Visual Studio group, but no answer, so am trying this one. I have a project that I working on for a number of years, expanding and enhancing it. I started it with Visual Studio 2005 and then moved to Visual Studio 2008 when it came out. All has been working very well. Recently, I wanted to move
what platforms, IDEs, etc do they use? What language? I code in C#, have done Windows Forms, WPF, Silverlight, ADO.NET, ASP.NET and some VB and Access dB programming, though now (SOAP) web services using REST as well. All of course under the award winning Visual Studio IDE. I am using VS 2008 but might upgrade to VS 2010. Seriously, why would ANYBODY code in Linux? Why? You Why would anybody use an IDE that does not have the bells and whistles of Visual Studio, like Intellisense? What's the point of not having a decent IDE? The only thing for the 99% that does not use Linux OS and the over 90% that uses Windows OS. But again, you can port (I think) almost anything done in Visual Studio to Linux. Please educate me, I am at a loss. I would even argue