Matlab builder NE 2012A x64 迁移到 2014B X64
Matlab builder NE 2012A x64 migreting to 2014B X64
我正在尝试将我的系统从 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
你能推荐一种方法来找出我的问题吗?
谢谢
您必须删除所有属性
[assembly: MathWorks.MATLAB.NET.Utility.MWMCROption ("- nojit")]
来自所有地方,已为 MCR 2012a 添加。
我正在尝试将我的系统从 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
你能推荐一种方法来找出我的问题吗?
谢谢
您必须删除所有属性
[assembly: MathWorks.MATLAB.NET.Utility.MWMCROption ("- nojit")]
来自所有地方,已为 MCR 2012a 添加。