Foxtable(狐表)用户栏目专家坐堂 → 应用程序的组件中发生了无法处理的异常


  共有2007人关注过本帖树形打印复制链接

主题:应用程序的组件中发生了无法处理的异常

帅哥哟,离线,有人找我吗?
cyrollin
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:四尾狐 帖子:821 积分:5760 威望:0 精华:0 注册:2015/2/3 22:19:00
应用程序的组件中发生了无法处理的异常  发帖心情 Post By:2018/11/12 16:15:00 [只看该作者]

有关调用实时(JIT)调试而不是此对话框的详细信息,
请参见此消息的结尾。

************** 异常文本 **************
System.ArgumentNullException: 值不能为空。
参数名: key
   在 System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
   在 System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
   在 System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   在 System.Data.DataView.System.Collections.IList.get_Item(Int32 recordIndex)
   在 Foxtable.o0  OO  .OO0o  O0(Int32 A_0)
   在 Foxtable.o__o_00_.Oo_oO___(Object A_0, OwnerDrawCellEventArgs A_1, Boolean A_2, Boolean A_3, Boolean& A_4)
   在 Foxtable.o__o_00_.Oo_oO___(Object A_0, OwnerDrawCellEventArgs A_1)
   在 C1.Win.C1FlexGrid.C1FlexGridBase.OnOwnerDrawCell(OwnerDrawCellEventArgs e)
   在 C1.Win.C1FlexGrid.C1FlexGridBase.#gdb(OwnerDrawCellEventArgs #tQ)
   在 C1.Win.C1FlexGrid.C1FlexGridBase.#fdb(Graphics #AA, Int32 #j, Int32 #l, Style #aE, Rectangle #o5, String #gM, Image #Ak)
   在 C1.Win.C1FlexGrid.C1FlexGridBase.DrawCell(Graphics #AA, Int32 #j, Int32 #l, Style #aE, Rectangle #o5, String #gM, Image #Ak, CheckEnum #bdb)
   在 C1.Win.C1FlexGrid.C1FlexGridBase.DrawCell(PaintEventArgs e, Int32 row, Int32 col)
   在 C1.Win.C1FlexGrid.C1FlexGrid.DrawCell(PaintEventArgs e, Int32 row, Int32 col)
   在 C1.Win.C1FlexGrid.C1FlexGrid.DrawRow(PaintEventArgs e, Int32 row)
   在 C1.Win.C1FlexGrid.C1FlexGridBase.#adb(PaintEventArgs #tQ)
   在 C1.Win.C1FlexGrid.C1FlexGridBase.OnPaint(PaintEventArgs e)
   在 System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
   在 System.Windows.Forms.Control.WmPaint(Message& m)
   在 System.Windows.Forms.Control.WndProc(Message& m)
   在 C1.Win.C1FlexGrid.Util.BaseControls.ScrollableControl.WndProc(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** 已加载的程序集 **************
mscorlib
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8825 (WinRelRS3.050727-8800)
    基本代码: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Foxtable
    程序集版本: 2018.9.9.1
    Win32 版本: 2018.09.09.1
    基本代码: file:///E:/foxtable/eval/foxtable.exe
----------------------------------------
Foxtable.Lib
    程序集版本: 2018.2.18.1
    Win32 版本: 2018.02.18.1
    基本代码: file:///E:/foxtable/eval/Foxtable.Lib.DLL
----------------------------------------
System.Windows.Forms
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8825 (WinRelRS3.050727-8800)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8825 (WinRelRS3.050727-8800)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8825 (WinRelRS3.050727-8800)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Microsoft.VisualBasic
    程序集版本: 8.0.0.0
    Win32 版本: 8.0.50727.8825 (WinRelRS3.050727-8800)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System.Data
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8825 (WinRelRS3.050727-8800)
    基本代码: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Xml
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8825 (WinRelRS3.050727-8800)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Management
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8825 (WinRelRS3.050727-8800)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
C1.Win.C1Ribbon.2
    程序集版本: 2.0.20161.147
    Win32 版本: 2.0.20161.147
    基本代码: file:///E:/foxtable/eval/C1.Win.C1Ribbon.2.DLL
----------------------------------------
Interop.JinDI_SmsComLib
    程序集版本: 1.0.0.0
    Win32 版本: 1.0.0.0
    基本代码: file:///E:/foxtable/eval/Interop.JinDI_SmsComLib.DLL
----------------------------------------
C1.Win.C1Command.2
    程序集版本: 2.0.20161.147
    Win32 版本: 2.0.20161.147
    基本代码: file:///E:/foxtable/eval/C1.Win.C1Command.2.DLL
----------------------------------------
mscorlib.resources
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8825 (WinRelRS3.050727-8800)
    基本代码: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
System.Transactions
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8825 (WinRelRS3.050727-8800)
    基本代码: file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8825 (WinRelRS3.050727-8800)
    基本代码: file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
System.Configuration
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8825 (WinRelRS3.050727-8800)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Design
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8825 (WinRelRS3.050727-8800)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Design/2.0.0.0__b03f5f7f11d50a3a/System.Design.dll
----------------------------------------
Accessibility
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8825 (WinRelRS3.050727-8800)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
C1.Win.C1FlexGrid.2
    程序集版本: 2.0.20161.147
    Win32 版本: 2.0.20161.147
    基本代码: file:///E:/foxtable/eval/C1.Win.C1FlexGrid.2.DLL
----------------------------------------
Microsoft.VisualBasic.resources
    程序集版本: 8.0.0.0
    Win32 版本: 8.0.50727.8825 (WinRelRS3.050727-8800)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic.resources/8.0.0.0_zh-CHS_b03f5f7f11d50a3a/Microsoft.VisualBasic.resources.dll
----------------------------------------
Foxtable.Blank
    程序集版本: 0.0.0.0
    Win32 版本: 2018.09.09.1
    基本代码: file:///E:/foxtable/eval/foxtable.exe
----------------------------------------
Interop.MSScriptControl
    程序集版本: 1.0.0.0
    Win32 版本: 1.0.0.0
    基本代码: file:///E:/foxtable/eval/Interop.MSScriptControl.DLL
----------------------------------------
C1.Win.C1Input.2
    程序集版本: 2.0.20161.147
    Win32 版本: 2.0.20161.147
    基本代码: file:///E:/foxtable/eval/C1.Win.C1Input.2.DLL
----------------------------------------
Foxtable.Ribbon
    程序集版本: 0.0.0.0
    Win32 版本: 2018.09.09.1
    基本代码: file:///E:/foxtable/eval/foxtable.exe
----------------------------------------
System.Web
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8825 (WinRelRS3.050727-8800)
    基本代码: file:///C:/Windows/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
C1.C1Excel.2
    程序集版本: 2.0.20161.147
    Win32 版本: 2.0.20161.147
    基本代码: file:///E:/foxtable/eval/C1.C1Excel.2.DLL
----------------------------------------
hfwysebf
    程序集版本: 0.0.0.0
    Win32 版本: 2.0.50727.8825 (WinRelRS3.050727-8800)
    基本代码: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------

************** JIT 调试 **************
要启用实时(JIT)调试,
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
jitDebugging 值。
编译应用程序时还必须启用
调试。

例如: 

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

启用 JIT 调试后,任何无法处理的异常
都将被发送到在此计算机上注册的 JIT 调试器,
而不是由此对话框处理。

图片点击可在新窗口打开查看此主题相关图片如下:微信图片_20181112161052.png
图片点击可在新窗口打开查看

运行的这段代码后出错:

If e.Form.controls("radiobutton1").checked = True  '今天以后
    Dim Result As DialogResult
    Result = MessageBox.Show("确定要删除【今天以后】的所有记录吗?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
    If Result = DialogResult.Yes Then
        DataTables("表A").SQLDeleteFor("日期 > #" & Date.Today & "#")
        DataTables("表A").RemoveFor("日期 > #" & Date.Today & "#")
        e.Form.controls("radiobutton1").checked = False
    End If
End If




 回到顶部
帅哥哟,离线,有人找我吗?
有点甜
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/11/12 16:17:00 [只看该作者]

这段代码不会导致报错。实例发上来测试。

 回到顶部