When you start up the compiled program, the MCR unpacks all the .m files (encrypted) under the Windows tmp folder. This is a haphazard place to put anything that needs to persist over a long period of time.
I added the following line in the startup script (feel free to come up with a folder of your choice):
set MCR_CACHE_ROOT=C:\Latronix\MCR_CACHE
Now, the files are stored in a safe place with no risk of periodical cleanup. I have not seen the problem during three weeks of testing. Also, since I run two parallel sessions of the same program, it allows me to use two different folders, avoiding possible clashes.
Thanks to the Matlab support team for working with me on this issue.
3 Comments
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/444542-method-removed-from-matlab-search-path-occurs-in-compiled-program#comment_697876
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/444542-method-removed-from-matlab-search-path-occurs-in-compiled-program#comment_697876
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/444542-method-removed-from-matlab-search-path-occurs-in-compiled-program#comment_698047
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/444542-method-removed-from-matlab-search-path-occurs-in-compiled-program#comment_698047
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/444542-method-removed-from-matlab-search-path-occurs-in-compiled-program#comment_698232
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/444542-method-removed-from-matlab-search-path-occurs-in-compiled-program#comment_698232
Sign in to comment.