Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Two instances executing when launching standalone exe
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Any idea how to prevent my standalone MATLAB 32-bit windows application from executing twice upon startup? Basically what happens is that the main m-file executes twice in succession. I have no idea why this happens.
I evoke the mcc from a separate m-file:
mcc -o '<programname>' ...
-W 'main' ...
...
... % Output folder
-d 'C:\Users\Admin\Documents\MATLAB\Compiler\Distribution' ...
...
... % <programname>.exe icon
-M 'C:\Users\Admin\Documents\MATLAB\Compiler\<icon>.res'...
...
... % Main m-file
-T 'link:exe' -v 'C:\Users\Admin\Documents\MATLAB\compiler\other files\startup.m' ...
...
... % Additional m-files
-a 'C:\Users\Admin\Documents\MATLAB\compiler\other files\<file1>.m' ...
-a 'C:\Users\Admin\Documents\MATLAB\compiler\other files\<file2>.m' ...
.
.
.
-a 'C:\Users\Admin\Documents\MATLAB\compiler\other files\<lastfile>.m'
Everything else works perfect, except for this dual launching thing.
0 comentarios
Respuestas (0)
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!