- 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.
How to re-initialize MATLAB Compiler Runtime (MCR) for reuse?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
MathWorks Support Team
il 12 Set 2025
Risposto: MathWorks Support Team
il 17 Ott 2025 alle 13:46
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?
Risposta accettata
MathWorks Support Team
il 12 Set 2025
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 -
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!