The Artima Developer Community
Sponsored Link

.NET Buzz Forum
How To Make the May Community Tech Preview crash badly

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Dan Fernandez

Posts: 456
Nickname: danielfe
Registered: Aug, 2003

Daniel Fernandez is the Product Manager for C# in the developer division at Microsoft.
How To Make the May Community Tech Preview crash badly Posted: Jul 6, 2004 10:56 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Dan Fernandez.
Original Post: How To Make the May Community Tech Preview crash badly
Feed Title: Dan Fernandez's Blog
Feed URL: /msdnerror.htm?aspxerrorpath=/danielfe/Rss.aspx
Feed Description: Dan discusses Dot Net.
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Dan Fernandez
Latest Posts From Dan Fernandez's Blog

Advertisement

I'm back from TechEd Europe where I ran into a case of the angry demo gods during my C# IDE Enhancements sessions. Joe gave this session in San Diego and did a great job so I had my work cut out to match his greatness. It's always great to find bad product bugs during a talk, it can only make you stronger for your next talk :)

Setup for demo failure

Part 1 - I was showing the new behavior of the Go To Definition Window. In Visual Studio 2003, if you right-click on a .NET Framework type (or a type that you don't have the source code for) it would open the Object Browser window. In Visual Studio 2005, right-clicking on a type w/o source code and selecting “Go To Definition” shows the metadata for the type as a source code file.  The image below shows the dynamically generated source file based on the String class in the System namespace

Part 2 - I was showing off the some cool new options available in Visual Studio 2005 when you click on a file tab. These features include:

  • Close All But This - This will close all files except for the selected file which is great when you have 10-20 files open and only want to work with one
  • Copy Full Path - This copies the full path to the selected file to the clipboard, convenient for jumping to a command line
  • Open Containing Folder - This opens the folder that contains the source code file, great for when you need to manipulate files and you would rather not have to navigate through c:\documents and settings\[username]\My Documents\ etc

Combining these steps for disaster

  • Right click on a type that you don't have source code for (like System.String) and select Go To Definition...  This will create a Metadata as source file as shown above.
  • Next, right click on the file name created in the last step and select “Open Containing Folder“
  • Wait ~30 seconds for Visual Studio to think and then watch as the screen goes black and you see the Virtual PC rebooting
  • Insert Homer Simpson “doh!“

To add insult to injury, my VPC hard drive which is a second hard drive in place of my CD player, stopped being recognized so even after restarting it wasn't working.  Luckily for me, I was showing VWD Express in my next demo and I could use C# Express for another demo so I only didn't get to show FxCop integration and the Object Test Bench demo.  OTB is one of the least known feature in Visual Studio 2005 so I'll be blogging about my demo later... 

Note: You'll need the May Community Tech Preview to have this crash as Beta 1 works and opens the folder to: C:\DOCUME~1\[username]\LOCALS~1\Temp\3124$CommonLanguageRuntimeLibrary$v2.0.40607\System.String.cs

 

Read: How To Make the May Community Tech Preview crash badly

Topic: SQL Express 2005 Beta 1, a release failure ? Previous Topic   Next Topic Topic: .NET Framework 1.0 SP3 and 1.1 SP1 Technical Preview

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use