Problem using .Net 4.5.1 application with MCR 9.0

2 ビュー (過去 30 日間)
SofaDeploy
SofaDeploy 2016 年 1 月 29 日
編集済み: Isaac Ali 2017 年 2 月 1 日
I have a compiled C# application running, using MatlabRuntim 9.0 (64 bit). Normally the application runs fine, but on this machine the application crashes with:
System.TypeInitializationException: The type initializer for 'MathWorks.MATLAB.NET.Utility.MWMCR' threw an exception. ---> System.TypeInitializationException: The type initializer for 'MathWorks.MATLAB.NET.Arrays.MWArray' threw an exception. ---> System.Runtime.InteropServices.SEHException: External component has thrown an exception.
at MathWorks.MATLAB.NET.Arrays.MWArray.mclmcrInitialize2(Int32 primaryMode)
at MathWorks.MATLAB.NET.Arrays.MWArray..cctor()
On the machine is also MCR 8.3 (32 bit) and MCR 7.13 (32bit) installed. But normally that shouldn't be a problem.
  1 件のコメント
Isaac Ali
Isaac Ali 2017 年 2 月 1 日
編集済み: Isaac Ali 2017 年 2 月 1 日
I have created a Visio addon to translate diagrams and send the translation to a simulation engine written as matlab code and compiled as .net assembly (.Net 4). The same application works fine when compiled for MCR 8.4 But I am finding that some users of the addon are seeing crashes with MCR 9.0.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeDeploy to .NET Applications Using MWArray API についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by