Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Two instances executing when launching standalone exe

2 Ansichten (letzte 30 Tage)
Eero Kuusi
Eero Kuusi am 10 Feb. 2012
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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.

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by