Info

This question is closed. Reopen it to edit or answer.

Two instances executing when launching standalone exe

1 view (last 30 days)
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.

Answers (0)

This question is closed.

Community Treasure Hunt

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

Start Hunting!