0

Start by creating a new console application (VB.NET). Paste the following code in Sub Main:

Dim AAAAAAAAAAA = BBBBBBB

Put the cursor before Sub Main and press Delete key on the keyboard.

enter image description here

VS crashes:

enter image description here

If the number of As or Bs is less - it won't crash. Same or more - it will. Why?

Also, can anyone else reproduce it?

I am able to reproduce 100% of the time, on three different workstations, one is Windows 7 x64, another is Windows Server 2012, and also my home PC (Windows 7 x64), where I am getting a slightly different crash screen:

enter image description here

Note: This is not just a curiosity question, I originally got the exception when trying to paste some code from StackOverflow. So it does happen in real scenarios, and sometimes when pasting into a work-in-progress project, in the middle of development (but I was not able to reproduce this scenario).

Victor Zakharov
  • 25,801
  • 18
  • 85
  • 151

0 Answers0