gpt4 book ai didi

visual-studio - VS 2012/2013 AccessViolationException

转载 作者:行者123 更新时间:2023-12-03 20:57:28 25 4
gpt4 key购买 nike

当我运行项目 (F5) 时,我在 IDE 中收到以下异常:

An unhandled exception of type 'System.AccessViolationException' occurred in System.Windows.Forms.dll
Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

堆栈跟踪报告
at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.Control.SendMessage(Int32 msg, Int32 wparam, IntPtr lparam)
at System.Windows.Forms.Form.UpdateWindowIcon(Boolean redrawFrame)
at System.Windows.Forms.Form.CreateHandle()
at System.Windows.Forms.Control.get_Handle()
at Microsoft.VisualStudio.HostingProcess.HostProc.RunParkingWindowThread()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

在没有调试器(CTRL+F5)的情况下运行时,我从未注意到收到相同的异常。这是一个WPF项目,但是在App_ctor执行之前发生了异常,所以这是外部代码,我的应用代码没有开始执行。这种情况偶尔发生,有时只发生一次,有时我运行该项目并连续多次收到此消息。然后它不会弹出 5-6 次运行,然后再次启动。

有谁知道为什么会这样?我刚刚安装了干净的 W8.1 64 位、VS2013 和 TFS 2013(虽然我在 W8 和 VS2012 上遇到了同样的问题,但并不常见)。

最佳答案

关于visual-studio - VS 2012/2013 AccessViolationException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19578568/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com