【发布时间】: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).
【问题讨论】:
-
请在您的问题中添加错误日志(文本)。
-
有一个令人惊讶的helpful and detailed guide here。
-
检查您的内部异常。 This answer 可能会有所帮助