Subject:
Why do I receive an "MCRInstance not available" error when deploying an application built with MATLAB Compiler 4.0 (R14)?
Problem Description:
I am trying to run a stand-alone application that was generated with the MATLAB Compiler. However, I receive the following error message when I call the program:
MCRInstance not available
Solution:
This bug has been fixed in Release 14 Service Pack 2 (R14SP2). For previous releases, please read below for any possible workarounds:
This error may occur if the executable file cannot find either the required MATLAB run-time libraries or the CTF archive for your application.
First, check your system path to verify that the MATLAB run-time libraries can be found. If you are testing your application on a development Windows machine, confirm that $MATLAB\bin\win32, where $MATLAB is your root MATLAB directory, appears on your system path and ahead of any other MATLAB installations.
If you are working on a target Windows machine, verify that $MCR_ROOT\runtime\win32, where $MCR_ROOT is your root MATLAB Component Runtime directory, appears on your system path.
For help viewing or modifying the system path, see:
http://www.mathworks.com/support ... ml?solution=1-15ZLK
Next, verify that the .ctf archive file that the MATLAB Compiler generated in the build process resides in the same directory as your program's executable file. |