When launching or calling the same deployed component, deployed component instances share the same MCR_CACHE_ROOT directory. So if there are multiple instances running at the same time each instance could possibly read/write to the same file in MCR_CACHE_ROOT and end up conflicting. We could set MCR_CACHE_ROOT to a different folder every time when launching the component to avoid crashes due to read/write conflicts.
The deployed component could be a standalone application, .net assembly, python package, JAVA package, c/c++ library... Basically all the outputs of MATLAB Compiler and MATLAB Compiler SDK that utilize CTF.
1. User could change the MCR_CACHE_ROOT manually
2. User could create a script file to launch the application. For instance, on Windows platform, user could create a batch file with below commands. The script uses date-time to name folder, so that folder name will be unique every time.