【发布时间】:2015-09-10 20:41:03
【问题描述】:
我正在尝试将我的系统从 matlab 2012a x64 转换为 matlab 2014b x64。但是我收到了这个错误。我正在使用 .Net 4.5,Visual Studio 2012 + 更新 5。
A first chance exception of type 'System.Exception' occurred in MWArray.dll
Additional information: Start-up options discovered in multiple assembiles.
然后我按 F5 得到:
A first chance exception of type 'System.TypeInitializationException' occurred in MWArray.dll
Additional information: The type initializer for 'MathWorks.MATLAB.NET.Utility.MWMCR' threw an exception.
我再次按 F5 得到:
A first chance exception of type 'System.TypeInitializationException' occurred in MWArray.dll
Additional information: The type initializer for 'MathWorks.MATLAB.NET.Arrays.MWArray' threw an exception.
这是我的代码:
private static MWArray ConvertBlackLevelResultsToMWArray(BlackLevelData blackLevelData)
{
var blackLevelResultsGroupedbyExposure = from blResult in blackLevelData group blResult by blResult.ExposureTime;
var exposuresCount = blackLevelResultsGroupedbyExposure.Count();
var blackLevelCells = new MWCellArray(1, exposuresCount); //the exception is here
我使用 .net 反射器来检查其他 DLL 文件中的所有依赖项,它们都引用了正确的 MWarray 版本 2.14.1.0
你能建议一种方法来找出我的问题吗?
谢谢
【问题讨论】:
标签: c# matlab matlab-compiler