Exception when initialize dll in c# generated by MATLAB Compiler

为君一笑 提交于 2019-11-29 12:53:27

Try adding this before the class definition

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

Also make sure that the .NET version you use for assembly is the same or lower than the one used for your Visual Studio project.

Another solution might be adding the path of the MATLAB runtime (e.g. C:\Program Files\MATLAB\MATLAB Runtime\v92\runtime\win64) to the PATH Environment Variable.

If none of these helps, have a look here and here, you might have a 64/32 bit mismatch.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!