Info

此问题已关闭。 请重新打开它进行编辑或回答。

Two instances executing when launching standalone exe

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

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by