Foxtable(狐表)用户栏目专家坐堂 → [求助]窗口崩溃了


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

主题:[求助]窗口崩溃了

美女呀,离线,留言给我吧!
小巫仙
  1楼 | QQ | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:幼狐 帖子:110 积分:1442 威望:0 精华:0 注册:2016/8/6 12:39:00
[求助]窗口崩溃了  发帖心情 Post By:2019/3/4 7:59:00 [只看该作者]

做窗口的时候,不小心把窗口整崩溃了,一预览就报错

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

************** 异常文本 **************
System.Reflection.TargetInvocationException: 调用的目标发生了异常。 ---> System.Data.SyntaxErrorException: 语法错误:“isnot”运算符后缺少操作数。
   在 System.Data.ExpressionParser.Parse()
   在 System.Data.DataExpression..ctor(DataTable table, String expression, Type type)
   在 System.Data.DataView.set_RowFilter(String value)
   在 Foxtable.WinForm.ComboBox.set_DataFilter(String value)
   --- 内部异常堆栈跟踪的结尾 ---
   在 System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   在 System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   在 System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   在 System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   在 System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
   在 System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index)
   在 Foxtable.o_oOo_0_.o___O00_(Object A_0, String A_1, Char A_2)
   在 Foxtable.WinForm.Form.ooO_0_o_(ControlCollection A_0, DataRow A_1, Int32 A_2)
   在 Foxtable.WinForm.Form.ooO_0_o_(ControlCollection A_0, DataRow A_1, Int32 A_2)
   在 Foxtable.WinForm.Form.ooO_0_o_(ControlCollection A_0, DataRow A_1, Int32 A_2)
   在 Foxtable.WinForm.Form.o___O_0o()
   在 Foxtable.WinForm.Form.o__oo00O(o0   000 A_0, Int32 A_1, Int32 A_2)
   在 Foxtable.WinForm.Form.Open(Int32 x, Int32 y)
   在 Foxtable.oo  0o  .o0  o O (Object A_0, ClickEventArgs A_1)
   在 C1.Win.C1Command.C1Command.OnClick(ClickEventArgs e)
   在 C1.Win.C1Command.C1Command.Invoke(ClickEventArgs e)
   在 C1.Win.C1Command.bn.a(C1CommandLink A_0, a A_1)
   在 C1.Win.C1Command.bn.c(MouseEventArgs A_0)
   在 C1.Win.C1Command.MenuPopup.OnMouseUp(MouseEventArgs e)
   在 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   在 System.Windows.Forms.Control.WndProc(Message& m)
   在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   在 System.Windows.Forms.ContainerControl.WndProc(Message& m)
   在 System.Windows.Forms.Form.WndProc(Message& m)
   在 C1.Win.C1Command.MenuPopup.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.8937 (WinRelRS4.050727-8900)
    基本代码: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Foxtable
    程序集版本: 2018.10.9.1
    Win32 版本: 2018.10.09.1
    基本代码: file:///C:/foxtable/Development/foxtable.exe
----------------------------------------
Foxtable.Lib
    程序集版本: 2018.2.18.1
    Win32 版本: 2018.02.18.1
    基本代码: file:///C:/foxtable/Development/Foxtable.Lib.DLL
----------------------------------------
System.Windows.Forms
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8922 (WinRelRS4.050727-8900)
    基本代码: 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.8939 (WinRelRS4.050727-8900)
    基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8922 (WinRelRS4.050727-8900)
    基本代码: 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.8922 (WinRelRS4.050727-8900)
    基本代码: 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.8922 (WinRelRS4.050727-8900)
    基本代码: 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.8922 (WinRelRS4.050727-8900)
    基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8922 (WinRelRS4.050727-8900)
    基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Management
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8922 (WinRelRS4.050727-8900)
    基本代码: 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:///C:/foxtable/Development/C1.Win.C1Ribbon.2.DLL
----------------------------------------
mscorlib.resources
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8937 (WinRelRS4.050727-8900)
    基本代码: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Interop.JinDI_SmsComLib
    程序集版本: 1.0.0.0
    Win32 版本: 1.0.0.0
    基本代码: file:///C:/foxtable/Development/Interop.JinDI_SmsComLib.DLL
----------------------------------------
C1.Win.C1Command.2
    程序集版本: 2.0.20161.147
    Win32 版本: 2.0.20161.147
    基本代码: file:///C:/foxtable/Development/C1.Win.C1Command.2.DLL
----------------------------------------
System.Transactions
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8922 (WinRelRS4.050727-8900)
    基本代码: 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.8922 (WinRelRS4.050727-8900)
    基本代码: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
System.Design
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8922 (WinRelRS4.050727-8900)
    基本代码: 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.8922 (WinRelRS4.050727-8900)
    基本代码: 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:///C:/foxtable/Development/C1.Win.C1FlexGrid.2.DLL
----------------------------------------
新财务系统.Project
    程序集版本: 0.0.0.0
    Win32 版本: 2018.10.09.1
    基本代码: file:///C:/foxtable/Development/foxtable.exe
----------------------------------------
C1.Win.C1Input.2
    程序集版本: 2.0.20161.147
    Win32 版本: 2.0.20161.147
    基本代码: file:///C:/foxtable/Development/C1.Win.C1Input.2.DLL
----------------------------------------
新财务系统.DataTable.AOEHb3uNTW2df5n43
    程序集版本: 0.0.0.0
    Win32 版本: 2018.10.09.1
    基本代码: file:///C:/foxtable/Development/foxtable.exe
----------------------------------------
新财务系统.DataTable.AZJNsh64OynaaC33u
    程序集版本: 0.0.0.0
    Win32 版本: 2018.10.09.1
    基本代码: file:///C:/foxtable/Development/foxtable.exe
----------------------------------------
新财务系统.DataTable.AHXgfLlcjg9MUsf4v
    程序集版本: 0.0.0.0
    Win32 版本: 2018.10.09.1
    基本代码: file:///C:/foxtable/Development/foxtable.exe
----------------------------------------
新财务系统.DataTable.Azgx4Dc9WhxZ2jnb8
    程序集版本: 0.0.0.0
    Win32 版本: 2018.10.09.1
    基本代码: file:///C:/foxtable/Development/foxtable.exe
----------------------------------------
新财务系统.DataTable.Ao0jBfoWDu2dYbTeD
    程序集版本: 0.0.0.0
    Win32 版本: 2018.10.09.1
    基本代码: file:///C:/foxtable/Development/foxtable.exe
----------------------------------------
新财务系统.DataTable.A79Sgyv36eZetrYY7
    程序集版本: 0.0.0.0
    Win32 版本: 2018.10.09.1
    基本代码: file:///C:/foxtable/Development/foxtable.exe
----------------------------------------
新财务系统.DataTable.AT0EtLZnWdMLOtger
    程序集版本: 0.0.0.0
    Win32 版本: 2018.10.09.1
    基本代码: file:///C:/foxtable/Development/foxtable.exe
----------------------------------------
Interop.MSScriptControl
    程序集版本: 1.0.0.0
    Win32 版本: 1.0.0.0
    基本代码: file:///C:/foxtable/Development/Interop.MSScriptControl.DLL
----------------------------------------
新财务系统.Function
    程序集版本: 0.0.0.0
    Win32 版本: 2018.10.09.1
    基本代码: file:///C:/foxtable/Development/foxtable.exe
----------------------------------------
新财务系统.Ribbon
    程序集版本: 0.0.0.0
    Win32 版本: 2018.10.09.1
    基本代码: file:///C:/foxtable/Development/foxtable.exe
----------------------------------------
System.Web
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8922 (WinRelRS4.050727-8900)
    基本代码: file:///C:/WINDOWS/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
新财务系统.Public
    程序集版本: 0.0.0.0
    Win32 版本: 2018.10.09.1
    基本代码: file:///C:/foxtable/Development/foxtable.exe
----------------------------------------
System.Windows.Forms.resources
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8922 (WinRelRS4.050727-8900)
    基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_zh-CHS_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
Office2007Renderer
    程序集版本: 1.0.0.0
    Win32 版本: 1.0.0.0
    基本代码: file:///C:/foxtable/Development/Office2007Renderer.DLL
----------------------------------------
huve6b2_
    程序集版本: 0.0.0.0
    Win32 版本: 2.0.50727.8939 (WinRelRS4.050727-8900)
    基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Neodynamic.WinControls.BarcodeProfessional
    程序集版本: 6.0.2000.0
    Win32 版本: 6.0.2000.15
    基本代码: file:///C:/foxtable/Development/Neodynamic.WinControls.BarcodeProfessional.DLL
----------------------------------------
mce-bhm4
    程序集版本: 0.0.0.0
    Win32 版本: 2.0.50727.8939 (WinRelRS4.050727-8900)
    基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.resources
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8922 (WinRelRS4.050727-8900)
    基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.resources/2.0.0.0_zh-CHS_b77a5c561934e089/System.resources.dll
----------------------------------------
新财务系统.Form.e645eb21
    程序集版本: 0.0.0.0
    Win32 版本: 2018.10.09.1
    基本代码: file:///C:/foxtable/Development/foxtable.exe
----------------------------------------
C1.Win.C1Chart.2
    程序集版本: 2.0.20161.147
    Win32 版本: 2.0.20161.147
    基本代码: file:///C:/foxtable/Development/C1.Win.C1Chart.2.DLL
----------------------------------------
System.Data.resources
    程序集版本: 2.0.0.0
    Win32 版本: 2.0.50727.8922 (WinRelRS4.050727-8900)
    基本代码: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Data.resources/2.0.0.0_zh-CHS_b77a5c561934e089/System.Data.resources.dll
----------------------------------------
新财务系统.Form.e645eb21
    程序集版本: 0.0.0.0
    Win32 版本: 2018.10.09.1
    基本代码: file:///C:/foxtable/Development/foxtable.exe
----------------------------------------

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

例如: 

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

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

是正在编辑的一个按钮“新增账单”,编辑编辑就这样了,下面是窗口afterload和按钮的代码

afterload

With Tables("租户合同台账")

    .AddNew()

    .Current("台账号") = Tables("房间台账").Current("台账号")

    .Current("合同号") = Tables("房间台账").Current("租户合同号")

    .Current("租户编号") = "租户" & .Current("_Identify")

    .Current("区域") = Tables("房间台账").Current("区域")

    .Current("房间号") = Tables("房间台账").Current("房间号")

    .Current("卧室号") = Tables("房间台账").Current("卧室号")

    If Tables("房间台账").Current.IsNull("定金条编号") Then

    Else

        .Current("出房人") = Tables("房间台账.定金违约").Current("出房人")

        .Current("定金") = Tables("房间台账.定金违约").Current("定金")

     '   e.Form.Controls("TextBox1").value = Tables("房间台账.定金违约").Current("月租金")

        .Current("承租人") = Tables("房间台账.定金违约").Current("承租人")

        .Current("电话") = Tables("房间台账.定金违约").Current("电话")

    End If

End With

'e.Form.Controls("TabControl1").tabpages(1).Visible = False

'e.Form.Controls("TabControl1").tabpages(2).Visible = False

'e.Form.Controls("TabControl1").tabpages(3).Visible = False

 

新增账单

Dim cb As WinForm.ComboBox = e.Form.Controls("ComboBox5")

Dim cb7 As WinForm.ComboBox = e.Form.Controls("ComboBox7")

Dim cb6 As WinForm.ComboBox = e.Form.Controls("ComboBox6")

Dim d As WinForm.ComboBox = e.Form.Controls("ComboBox8")

Dim t As WinForm.TextBox = e.Form.Controls("TextBox2")

Dim b As Integer = 1

If cb.Value = "" Then

    messagebox.Show("未填写<账单项目>,请填写完毕后再新增账单!")

    b = 0

Else If d.Value Is Nothing Then

    messagebox.Show("未填写<应收日期>,请填写完毕后再新增账单!")

    b = 0

Else If t.Value Is Nothing Then

    messagebox.Show("未填写<应收金额>,请填写完毕后再新增账单!")

    b = 0

End If

With Tables("租户账单")

    If b = 1 And  cb6.value Is Nothing Then

        .AddNew()

        .Current("合同号") = Tables("租户合同台账").Current("合同号")

        Dim dr As DataRow

        dr = DataTables("租户账单").Find("应收日期 > '" & d.value & "' And 合同号 = '" & .Current("合同号") & "'")

        If dr IsNot Nothing Then '如果找到的话

            .Current("租期编号") = dr("租期编号")

            .Current("账期") = dr("账期")

        End If

        .Current("账单项目") = cb.value

        .Current("应收应付") = cb7.value

        .Current("应收日期") = d.value

        .Current("应收金额") = t.value

    Else If b = 1 Then

msgbox(1)

        Dim rq() As String

        Dim zq() As String

        Dim zdq() As String

        Dim i As Integer = 0

        For Each r As Row In Tables("租户合同台账.租户账单").Rows

 

            If r("应收日期") >= cb6.value

msgbox(r("应收日期"))

                rq(i) = cstr(r("应收日期"))

msgbox(rq(i))

                zq(i) = r("租期编号")

                zdq(i) = r("账期")

                i +=i

            End If

        Next

msgbox(2)

        For j As Integer = 0 To i

            .AddNew()

            .Current("合同号") = Tables("租户合同台账").Current("合同号")

            .Current("租期编号") = zq(i)

            .Current("账期") = zdq(i)

            .Current("账单项目") = cb.value

            .Current("应收应付") = cb7.value

            .Current("应收日期") = cdate(rq(i))

            .Current("应收金额") = t.value

        Next

    End If

End With

后来把这两段代码都删除,窗口还是报错,崩溃了

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


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

1、先备份你的窗口

 

http://www.foxtable.com/webhelp/scr/2413.htm

 

2、把里面的table控件等一个一个删除,然后测试,是否正常


 回到顶部