单击特定子例程时,Visual Basic 2010崩溃

时间:2013-02-19 17:04:54

标签: vb.net vb.net-2010

在Visual Basic 2010中单击特定子例程时,应用程序崩溃只会出现错误消息“Microsoft Visual Basic 2010 [Express]遇到问题,需要关闭。”

日志中没有任何内容,安全模式无效。

2 个答案:

答案 0 :(得分:0)

当我遇到这个问题时,我发现这是由于线路连续超过400线。

例如:

Dim someString As String
someString = "some text and then a line continuation " & _
             "and then some more text for 400 lines " & _
             ... & _
             "and then finish the string"

要解决这个问题,我只需要在一行中组合多个“行”,就可以使我的代码变得有点笨拙。

希望这有助于其他人!

答案 1 :(得分:0)

听起来您正在点击解决方案空间中的模块或.vb文件。尝试右键单击,然后“编辑代码”,如果可能的话。如果有一个Interop对象,也许是一个没有注册Windows的控件(.OCX),那么VS会崩溃 - 承诺!