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

3 次查看(过去 30 天)
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?

回答(1 个)

Yatharth
Yatharth 2023-10-18
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.

类别

Help CenterFile Exchange 中查找有关 MATLAB Compiler 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by