【问题标题】:Matlab builder NE 2012A x64 migreting to 2014B X64Matlab builder NE 2012A x64 迁移到 2014B X64
【发布时间】: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


    【解决方案1】:

    您必须删除所有属性

    [assembly: MathWorks.MATLAB.NET.Utility.MWMCROption ("- nojit")]
    

    来自所有地方,为 MCR 2012a 添加。

    【讨论】:

    • 疯了,我什至不记得了
    猜你喜欢
    • 2023-03-11
    • 2022-06-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-09-27
    相关资源
    最近更新 更多