【问题标题】:An unhandled exception of type 'System.TypeInitializationException' occurred in Emgu.CV.dllEmgu.CV.dll 中出现“System.TypeInitializationException”类型的未处理异常
【发布时间】:2015-02-13 04:28:13
【问题描述】:

我在 Visual Studio 2012 中做网络摄像头应用程序。当我构建我的程序时,我遇到了这种类型的错误。Emgu.CV.dll 中发生了 System.TypeInitializationException 类型的未处理异常

附加信息:Emgu.CV.CvInvoke 的类型初始值设定项引发了异常。

错误日志:

A first chance exception of type 'System.ArgumentException' occurred in mscorlib.dll
A first chance exception of type 'System.DllNotFoundException' occurred in Emgu.CV.dll
A first chance exception of type 'System.TypeInitializationException' occurred in Emgu.CV.dll
An unhandled exception of type 'System.TypeInitializationException' occurred in Emgu.CV.dll
Additional information: The type initializer for 'Emgu.CV.CvInvoke' threw an exception.
The thread '<No Name>' (0x19d4) has exited with code 0 (0x0).
The program '[8784] CameraApp.vshost.exe: Program Trace' has exited with code 0 (0x0).
The program '[8784] CameraApp.vshost.exe: Managed (v4.0.30319)' has exited with code 0 (0x0).

【问题讨论】:

标签: c# .net emgucv


【解决方案1】:

不确定是什么原因造成的,但您可以将调试器设置为在第一次出现异常时停止,这样您至少可以了解可能导致问题的原因。

为此,请转到调试/异常...

在异常对话框中,单击公共语言运行时异常的抛出复选框,这会导致调试器在第一次更改异常时立即停止......并让您了解正在发生的事情......

我希望这会有所帮助...

【讨论】:

    【解决方案2】:

    当我在 64 位操作系统中运行我的应用程序时出现此错误。如果你的操作系统是 64 位的,那就是罪魁祸首。

    【讨论】:

      猜你喜欢
      • 2011-10-18
      • 1970-01-01
      • 2015-12-30
      • 1970-01-01
      • 2020-07-22
      • 2021-01-14
      • 2014-06-03
      • 2014-03-09
      • 1970-01-01
      相关资源
      最近更新 更多