How to re-initialize MATLAB Compiler Runtime (MCR) for reuse?

4 ビュー (過去 30 日間)
MathWorks Support Team
MathWorks Support Team 2025 年 9 月 12 日
回答済み: MathWorks Support Team 2025 年 10 月 17 日
I am trying to call "mclInitializeApplication" in the same application again to reinitialize MCR, and found that the application hangs without any error even after using "mclTerminateApplication". How can I resolve this issue? 

採用された回答

MathWorks Support Team
MathWorks Support Team 2025 年 9 月 12 日
It is recommended to use the functions "mclInitializeApplication" and "mclTerminateApplication" only once per process to avoid any unexpected errors. Re-initializing MCR in the same process can lead to unexpected behavior.
In this case below possible approaches can be followed for the work around -
  • Divide the code into two separate processes and use "mclInitializeApplication" for both the processes
  • If the code permits, use "mclTerminateApplication" in the end rather than re-initializing MCR later.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by