Effacer les filtres
Effacer les filtres

matlab runtime mwarray assembly failed to be initialized after running my application for multiple days

39 vues (au cours des 30 derniers jours)
We have a C# application using matlab code compiled in a DLL. It always works, except when running the application for a long time, then close it and restart the application. The application can not load the matlab runtime at this point. It gives the following error:
Failed to start matlab runtime mwarray assembly failed to be initialized
We can only solve it by restarting the computer. Is there a way to prevent this from happening or resetting the matlab runtime without having to restart the pc?

Réponses (1)

Pravarthana P
Pravarthana P le 2 Déc 2022
I understand that you are facing issue with C# application which is running for a long time.The following suggestions might help you:
1.The MCR cache might be corrupted, clear your MCR cahce. The following answer post contain steps to clear the cache:
2.Check whether you are using any of the following functions in your code. These functions are not supported for compilation and might create issues after compilation. Refer to the following documentation to identify the unsupported functions:


En savoir plus sur Deploy to C++ Applications Using mwArray API (C++03) dans Help Center et File Exchange




Community Treasure Hunt

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

Start Hunting!

Translated by