MATLAB Engine application tries to load incompatible DLLs from Windows\System32

100 views Asked by At

I wrote a MATLAB Engine application that my colleagues need to use on their own Windows computers with different versions of MATLAB (i.e. the location of their MATLAB installation varies). In order for the application to find MATLAB libraries, MATLAB's bin\win64 directory is appended to the PATH manually.

Some of these MATLAB libraries rely on other DLLs, such as tbb.dll, which also ship with MATLAB. On some computers an incompatible version of this DLL might be present in the Windows\System32 directory as well, causing the MATLAB application to fail to start (as it tries to load the incompatible version).

How can I ensure that my MATLAB Engine application only tries to load the correct versions of these DLLs, found in MATLAB's installation directory, instead of incompatible versions found in Windows\System32?

This is probably related.

0

There are 0 answers