- Make sure your antivirus software does not lock files within the output directory where the resulting executable is located. Contact your IT helpdesk for further assistance with this.
- Alternatively, if you do not have access to turning off the anti-virus software, you can simply try to delete all of the files that are generated when compiling the executable and recompile again.
- If there is no antivirus available in the system, then run MATLAB in Administrator mode.
- If this does not work either, try switching the compiler to MinGW instead of Visual Studio (or vice versa) when using coder workflows.
Why am I encountering the error "The process cannot access the file because it is being used by another process" when I compile an executable from MATLAB/Simulink?
23 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MathWorks Support Team
el 4 de Jul. de 2023
Editada: MathWorks Support Team
el 9 de Mayo de 2025
Why am I encountering the following issue when I am using a workflow in MATLAB/Simulink to generate an executable, for example using MATLAB Compiler:
The process cannot access the file because it is being used by another process.
When using one coder products like MATLAB Coder, Simulink Coder, or Embedded Coder, the error might look like this, depending on the external compiler being used:
mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file "C:\path\test.exe".
The process cannot access the file because it is being used by another process.
Respuesta aceptada
MathWorks Support Team
el 9 de Mayo de 2025
Editada: MathWorks Support Team
el 9 de Mayo de 2025
This is an issue being encountered by the antivirus software locking access to the resulting executable while updating its manifest and is not caused by MATLAB itself.
To resolve this issue, take the following steps:
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!