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 …”);
  3. Try to close console window by clicking on its close icon.
    Run console app and click on close to crash it

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.

Liked this post? Empower your friends by sharing it!

Gunnar Peipman

Gunnar Peipman is ASP.NET, Azure and SharePoint fan, Estonian Microsoft user group leader, blogger, conference speaker, teacher, and tech maniac. Since 2008 he is Microsoft MVP specialized on ASP.NET.

    3 thoughts on “Visual Studio 2010: How to crash Windows 7

    • May 24, 2009 at 1:12 am

      it works fine on Windows 7 RC 1

    • June 26, 2010 at 5:58 pm

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

    Leave a Reply

    Your email address will not be published. Required fields are marked *