Gunnar Peipman's ASP.NET blog

ASP.NET, C#, SharePoint, SQL Server and general software development topics.

Sponsors

News

 
 
 
DZone MVB

Links

Social

Visual Studio 2010: How to crash Windows 7

During Visual Studio 2010 testing I found interesting way how to crash Visual Studio 2010 so bad that my Windows 7 needs restart. Just follow these steps.

  1. Create new console application.
     
  2. Write there these two lines (first line sows that something is going on and second line keeps console window open):

    Console.WriteLine(“Press any key to exit …”);
    Console.ReadLine();
     
  3. Try to close console window by clicking on its close icon.

On my Windows 7 beta version Visual Studio 2010 hangs when I perform these steps. Console window stays opened and when I stop application then I experience horrible performance because csrss.exe hogs as much as CPU cycles as possible. My computer gets so slow that I heed to restart it. Closing Visual Studio 2010 doesn’t help.

If you want to output something and you are maniac window closer then use Debug.Write and Debug.WriteLine when you need to output something informal for you.


kick it on DotNetKicks.com pimp it Shout it

Comments

sergey.zwezdin said:

I have tried it now and it works for me normally, without crashes.

# May 23, 2009 7:28 AM

maulikk2000 said:

it works fine on Windows 7 RC 1

# May 23, 2009 9:12 PM

Syed Ali Raza said:

Well no problems on Windows 7 build 7600 and visual studio 2010 final edition.

# June 26, 2010 1:58 PM