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.
VS crashes:
If the number of A
s or B
s 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:
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).