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

5 views (last 30 days)
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

Accepted Answer

Programmer x.0
Programmer x.0 on 3 Nov 2022
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

More Answers (0)

Categories

Find more on C Shared Library Integration in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!