Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Two instances executing when launching standalone exe
조회 수: 3 (최근 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
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!