"MWArray assembly failed to be initialized" error occurs with Matlab 2022b after upgrading to Windows 11

Hello,
I have upgraded Matlab to R-2022b, and Windows to Win 11, and above error occurs.
None of thje suggestions in the forums have worked.
It is a WinForms aplication, developed in C#, Visual Studio 2019. Code works perfect on Win 10, Matlab 2021
Can somebody help, please?
Thank you

 채택된 답변

Hello evereybody,
With the help of Mathorks Tech Support (thank you, Noé B), I got this solved, going through the following steps:
  • Check if the MATLAB Runtime version installed is compatible with the MATLAB version being used. You can use the command "mcrinstaller" to see the installed version and its path.
  • Ensure all dependencies and references in the code are correct.
  • Remove any Simulink models and code from the MATLAB path since MATLAB Compiler cannot compile Simulink models/code.
  • Check if any function in your code is not supported by MATLAB Compiler. You can view this list here.
  • Once everything checked and in ordfer, re-compile all libraries you want to use on R-2022b / Win 11

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Deploy to C++ Applications Using mwArray API (C++03)에 대해 자세히 알아보기

제품

릴리스

R2022b

질문:

2022년 11월 1일

답변:

2022년 11월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by