问题描述
我知道之前已经发布过,但我想我已经阅读了大部分内容。我的情况有所不同。我刚开始一个项目,并不认为我有任何会导致此问题的代码。我正在使用4.6 .net框架。我认为问题出在编译器本身。我在尝试编译时遇到此错误。此外,我已经尝试过其他版本的.net框架。异常错误是:System.Windows.Forms.dll中出现类型为System.AccessViolationException的未处理异常
I know that this has been posted before, but I think I have read most of them. My situation is different. I just started a project and don't think I have any code that would cause this problem. I'm using 4.6 .net framework. I think the issue is in the compiler itself. I get this error when trying to compile. Also, I've tried other versions of the .net framework. The exception error is: an unhandled exception of type 'System.AccessViolationException' occurred in System.Windows.Forms.dll
Public Class Form1
Private Sub CryButton_Click(sender As Object, e As EventArgs) Handles CryButton.Click
Application.Exit()
End Sub
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load
End Sub
Private Sub CryButton1_Click(sender As Object, e As EventArgs) Handles CryButton1.Click
Try
blist.Items.Add("This is a test of a longer string!")
blist.Items.Add("This is a test of a longer string!")
blist.Items.Add("This is a test of a longer string!")
blist.Items.Add("This is a test of a longer string!")
blist.Items.Add("This is a test of a longer string!")
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
End Class
如你所见,我几乎没有代码,我收到此错误。我已经取消选中压制jit以及我从这个网站上读过的其他内容。有没有人知道为什么会发生这种情况?
As you can see, I have almost no code and I'm getting this error. I've unchecked "suppress jit" and other things that I've read from this site. Does anyone have any idea why this is happening?
推荐答案
这篇关于我收到异常错误,似乎无法解决它。使用vb.net ..任何想法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!