Visual Studio 2010 crashes after pasting simple code?

删除回忆录丶 提交于 2019-12-23 04:21:39

问题


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 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:

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).

来源:https://stackoverflow.com/questions/21054236/visual-studio-2010-crashes-after-pasting-simple-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!