Are there any changes in the way compiled apps interact with the operating system? Different app behavior when compiled!

1 visualización (últimos 30 días)
I have an app that creates a macro (.cmd file) to run a second program (adams car) in bacth. Once this macro is created, I send a command to the operating system using the system function to execute the macro.
The problem is that I am getting different outputs (from the second program) when I compile the app. When I run my app directly from app designer, everything goes well, but when I compile it (to distribute as a standalone desktop app) I do not get complete results.
I verified that the macro created by the compiled app is exactly the same as the one created when I run the app from app designer; also the command sent to the operating system is exactly the same.
I tried running manually the macro created by the compiled app (by typing the command in the cmd shell) and it worked well, so the problem seems to be associated with the compiled app blocking something from the second program, which is strange since the second program is completely independent from matlab, it uses only the information present on the macro and its internal routines.
Another detail is that it works when compiled with R2020a but not with R2022a.
So, are there any clues as to why it does not work properly when compiled? And why it happens in R2022a but works in R2020a?

Respuestas (1)

Yatharth
Yatharth el 18 de Oct. de 2023
Hi Wictor,
I understand that you are facing an issue with the compiled desktop app in R2022a however, the problem did not exist in the R2020a version.
Here is a similar query that might help your case.
If not, this might be a bug and you can report it to technical staff to resolve it.
I hope this helps.

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Productos


Versión

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by