Foxtable(狐表)用户栏目专家坐堂 → [求助]


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

主题:[求助]

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


加好友 发短信
等级:小狐 帖子:356 积分:2314 威望:0 精华:0 注册:2014/10/4 9:38:00
[求助]  发帖心情 Post By:2015/11/2 13:31:00 [显示全部帖子]

DataRowAdding代码:e.DataRow("操作员")=_UserName,这个在老板本是可以的,但新版报错,为什么?

 

 

 

.NET Framework 版本:2.0.50727.3053
Foxtable 版本:2015.11.2.1
错误所在事件:表,基础资料,DataRowAdding
详细错误信息:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'UserCode' threw an exception. ---> System.NotSupportedException: No devices of the category
   at DirectX.Capture.FilterCollection.getFilters(Guid category)
   at DirectX.Capture.FilterCollection..ctor(Guid category)
   at DirectX.Capture.Filters..ctor()
   at UserCode..cctor()
   --- End of inner exception stack trace ---
   at UserCode.DataRowAdding(DataRowEventArgs e)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Foxtable.DataTable.Oo00o O (Object A_0, DataTableNewRowEventArgs A_1)


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


加好友 发短信
等级:小狐 帖子:356 积分:2314 威望:0 精华:0 注册:2014/10/4 9:38:00
  发帖心情 Post By:2015/11/2 13:40:00 [显示全部帖子]

发现2016新版本,有_UserName 代码的事件都提示错,为什么呢


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


加好友 发短信
等级:小狐 帖子:356 积分:2314 威望:0 精华:0 注册:2014/10/4 9:38:00
  发帖心情 Post By:2015/11/2 13:46:00 [显示全部帖子]

但是到命令窗口执行: messagebox.show(_UserName) ,显示是正常的

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


加好友 发短信
等级:小狐 帖子:356 积分:2314 威望:0 精华:0 注册:2014/10/4 9:38:00
  发帖心情 Post By:2015/11/2 14:12:00 [显示全部帖子]

 检查发现:在win7是正常的,但在Xp运行也出现错

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


加好友 发短信
等级:小狐 帖子:356 积分:2314 威望:0 精华:0 注册:2014/10/4 9:38:00
  发帖心情 Post By:2015/11/2 14:29:00 [显示全部帖子]

老师我昨天是加了拍照功能,是要加这些代码?应该加哪里呢?

Try
    Dim _Cams = New DCap.Filters()
Catch
  MessageBox.Show("未找到摄像头","提示")
End Try


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


加好友 发短信
等级:小狐 帖子:356 积分:2314 威望:0 精华:0 注册:2014/10/4 9:38:00
  发帖心情 Post By:2015/11/2 15:06:00 [显示全部帖子]

 代码是写在内部函数里的,现在改为上在代码时提示错误,如下图:

 


图片点击可在新窗口打开查看此主题相关图片如下:qq图片20151102145823.jpg
图片点击可在新窗口打开查看

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


加好友 发短信
等级:小狐 帖子:356 积分:2314 威望:0 精华:0 注册:2014/10/4 9:38:00
  发帖心情 Post By:2015/11/2 15:31:00 [显示全部帖子]

代码改好了,发布后到别的机上运行又报之前的错了

DataRowAdding代码:e.DataRow("操作员")=_UserName,这个在老板本是可以的,但新版报错,为什么?

 

.NET Framework 版本:2.0.50727.3053
Foxtable 版本:2015.11.2.1
错误所在事件:表,基础资料,DataRowAdding
详细错误信息:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'UserCode' threw an exception. ---> System.NotSupportedException: No devices of the category
   at DirectX.Capture.FilterCollection.getFilters(Guid category)
   at DirectX.Capture.FilterCollection..ctor(Guid category)
   at DirectX.Capture.Filters..ctor()
   at UserCode..cctor()
   --- End of inner exception stack trace ---
   at UserCode.DataRowAdding(DataRowEventArgs e)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Foxtable.DataTable.Oo00o O (Object A_0, DataTableNewRowEventArgs A_1)



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


加好友 发短信
等级:小狐 帖子:356 积分:2314 威望:0 精华:0 注册:2014/10/4 9:38:00
  发帖心情 Post By:2015/11/2 15:39:00 [显示全部帖子]

 

代码改好了,发布后到别的机上运行又报之前的错了

 

DataRowAdding代码:e.DataRow("操作员")=_UserName

 

.NET Framework 版本:2.0.50727.3053
Foxtable 版本:2015.11.2.1
错误所在事件:表,基础资料,DataRowAdding
详细错误信息:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'UserCode' threw an exception. ---> System.NotSupportedException: No devices of the category
   at DirectX.Capture.FilterCollection.getFilters(Guid category)
   at DirectX.Capture.FilterCollection..ctor(Guid category)
   at DirectX.Capture.Filters..ctor()
   at UserCode..cctor()
   --- End of inner exception stack trace ---
   at UserCode.DataRowAdding(DataRowEventArgs e)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Foxtable.DataTable.Oo00o O (Object A_0, DataTableNewRowEventArgs A_1)


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


加好友 发短信
等级:小狐 帖子:356 积分:2314 威望:0 精华:0 注册:2014/10/4 9:38:00
  发帖心情 Post By:2015/11/2 15:43:00 [显示全部帖子]

 按上面代码改好了,但还是出现刚开始的错:

 

.NET Framework 版本:2.0.50727.3053
Foxtable 版本:2015.11.2.1
错误所在事件:表,基础资料,DataRowAdding
详细错误信息:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'UserCode' threw an exception. ---> System.NotSupportedException: No devices of the category
   at DirectX.Capture.FilterCollection.getFilters(Guid category)
   at DirectX.Capture.FilterCollection..ctor(Guid category)
   at DirectX.Capture.Filters..ctor()
   at UserCode..cctor()
   --- End of inner exception stack trace ---
   at UserCode.DataRowAdding(DataRowEventArgs e)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Foxtable.DataTable.Oo00o O (Object A_0, DataTableNewRowEventArgs A_1)


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


加好友 发短信
等级:小狐 帖子:356 积分:2314 威望:0 精华:0 注册:2014/10/4 9:38:00
  发帖心情 Post By:2015/11/2 15:55:00 [显示全部帖子]

 已经改成了return nothing, 但还是一样刚开始的错

 回到顶部
总数 19 1 2 下一页