Can lingering testhost.exe processes be prevented after C# unit tests using a MATLAB .NET library?
Mostrar comentarios más antiguos
I am experiencing an issue while running unit tests in a C# application that integrates a MATLAB module, which has been compiled as a .NET library using MATLAB Compiler SDK. During the testing process, the "testhost.exe" process is launched by design, as it is responsible for hosting the unit tests in C# environments such as MSTest or xUnit. Notably, "testhost.exe" only starts when the C# code calls the MATLAB .NET library, and does not launch if those calls are commented out.
The problem arises when "testhost.exe" remains visible in the Task Manager even after all the unit tests and the .NET library processes have completed. This lingering process suggests that resources may not be properly released, potentially leading to resource leaks or other issues during repeated testing or application deployment.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Get Started with MATLAB Compiler SDK en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!