我的电脑上有 VC2005 和 VC2008。上午我在 2008 上用 EMGU 写了C# 程序,运行正常。
然后我卸载了 vc2005 和 Microsoft SQL server 2005。
接下来就不对了:再运行 EMGU 程序时,执行到 new Image<Bgr, Byte>(filename) 时就会报错:
An unhandled exception of type 'System.TypeInitializationException' occurred in Emgu.CV.dll
Additional information: The type initializer for 'Emgu.CV.CvInvoke' threw an exception.