MWArray assembly failed to be initialized

조회 수: 51 (최근 30일)
Sharon Zohar
Sharon Zohar 2020년 2월 13일
댓글: Onur Demirer 2022년 11월 28일
Hi,
I am running and developing this App for long time, I am using a .Net that was compiled with Matlab Library Compiler.
Suddenly today the App stoped working withe the message:
---------------------------
Matlab Error
---------------------------
Error initiating Matlab Library System.Exception: MWArray assembly failed to be initialized ---> System.Exception: The MATLAB Runtime instance could not be initialized ---> System.ApplicationException: The MATLAB Runtime instance could not be initialized
segv - SEVERE ERROR
at MathWorks.MATLAB.NET.Utility.MWMCR..ctor(String componentId, String componentPath, Stream embeddedCtfStream, Boolean isLibrary)
--- End of inner exception stack trace ---
at MathWorks.MATLAB.NET.Utility.MWMCR..ctor(String componentId, String componentPath, Stream embeddedCtfStream, Boolean isLibrary)
I tried to recompile, reinstall the real time engine install previous version and still getting this message.
I am not sure what changed. I installed the App in a different computer and no problem at all.
Your help will be greatly appropriated.
Thanks
Sharon

채택된 답변

Kojiro Saito
Kojiro Saito 2020년 2월 13일
Your MATLAB Runtime cache folder might be corrupted.
Delete the cache folder.
%TEMP%\USER\mcrCacheX.X
If your Windows account is usera and MATLAB Runtime version is 9.3 (R2017b),
the above folder would be
C:\Users\usera\AppData\Local\Temp\usera\mcrCache9.3
After deleting this folder, you can freshly launch your compiled application.
  댓글 수: 12
Rohith Ramaiah
Rohith Ramaiah 2022년 10월 25일
Issue occured on Matlab Runtime 9.8 as well. But these steps resolved it. Thanks!
Onur Demirer
Onur Demirer 2022년 11월 28일
Thank you very much, I was going crazy looking for issues elsewhere and this worked like a charm!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Deploy to .NET Applications Using MWArray API에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by