• 5System.AccessViolationException: 尝试读取或写入受保护的内存。这通常指示其他内存已损坏。


    1有关调用实时(JIT)调试而不是此对话框的详细信息,
     2请参见此消息的结尾。
     3
     4************** 异常文本 **************
     5System.AccessViolationException: 尝试读取或写入受保护的内存。这通常指示其他内存已损坏。
     6   在 System.Drawing.SafeNativeMethods.Gdip.GdipDrawRectangleI(HandleRef graphics, HandleRef pen, Int32 x, Int32 y, Int32 width, Int32 height)
     7   在 System.Drawing.Graphics.DrawRectangle(Pen pen, Int32 x, Int32 y, Int32 width, Int32 height)
     8   在 System.Drawing.Graphics.DrawRectangle(Pen pen, Rectangle rect)
     9   在 System.Windows.Forms.ComboBox.FlatComboAdapter.DrawFlatCombo(ComboBox comboBox, Graphics g)
    10   在 System.Windows.Forms.ComboBox.WndProc(Message& m)
    11   在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    12   在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    13   在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    14
    15
    16************** 已加载的程序集 **************
    17mscorlib
    18    程序集版本: 2.0.0.0
    19    Win32 版本: 2.0.50727.832 (QFE.050727-8300)
    20    基本代码: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    21----------------------------------------
    22System.Windows.Forms
    23    程序集版本: 2.0.0.0
    24    Win32 版本: 2.0.50727.832 (QFE.050727-8300)
    25    基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    26----------------------------------------
    27System
    28    程序集版本: 2.0.0.0
    29    Win32 版本: 2.0.50727.832 (QFE.050727-8300)
    30    基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    31----------------------------------------
    32System.Drawing
    33    程序集版本: 2.0.0.0
    34    Win32 版本: 2.0.50727.832 (QFE.050727-8300)
    35    基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    36----------------------------------------
    37System.Configuration
    38    程序集版本: 2.0.0.0
    39    Win32 版本: 2.0.50727.832 (QFE.050727-8300)
    40    基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    41----------------------------------------
    42System.Xml
    43    程序集版本: 2.0.0.0
    44    Win32 版本: 2.0.50727.832 (QFE.050727-8300)
    45    基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    46----------------------------------------
    47mscorlib.resources
    48    程序集版本: 2.0.0.0
    49    Win32 版本: 2.0.50727.832 (QFE.050727-8300)
    50    基本代码: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    51----------------------------------------
    52System.Windows.Forms.resources
    53    程序集版本: 2.0.0.0
    54    Win32 版本: 2.0.50727.42 (RTM.050727-4200)
    55    基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_zh-CHS_b77a5c561934e089/System.Windows.Forms.resources.dll
    56----------------------------------------
    57
    58************** JIT 调试 **************
    59要启用实时(JIT)调试,
    60该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
    61jitDebugging 值。
    62编译应用程序时还必须启用
    63调试。
    64
    65例如: 
    66
    67<configuration>
    68    <system.windows.forms jitDebugging="true" />
    69</configuration>
    70
    71启用 JIT 调试后,任何无法处理的异常
    72都将被发送到在此计算机上注册的 JIT 调试器,
    73而不是由此对话框处理。
  • 相关阅读:
    【SICP练习】80 练习2.52
    【SICP练习】79 练习2.51
    【SICP练习】78 练习2.50
    【SICP练习】77 练习2.48-2.49
    【SICP练习】76 练习2.47
    【SICP练习】75 练习2.46
    【SICP练习】74 练习2.45
    【SICP练习】73 练习2.44
    【SICP练习】72 练习2.43
    【SICP练习】71 练习2.42
  • 原文地址:https://www.cnblogs.com/hyruur/p/1213702.html
Copyright © 2020-2023  润新知