Why won't my executable run?

조회 수: 5 (최근 30일)
Nicholas
Nicholas 2015년 6월 4일
댓글: Image Analyst 2015년 7월 1일
I have compiled a collection of Matlab classes functions into an executable to package up control software and a GUI developed in GUIDE. The executable causes no errors, but does not run. I have installed the MCR. How can I start to investigate problems? Run from the command line? I'm using version R2012B 32 Bit.

답변 (1개)

Image Analyst
Image Analyst 2015년 6월 4일
One thing not on the FAQ yet, is to run the app from a console window so you can see the error. Otherwise if you just double click the icon and you get unhandled errors, everything vanishes. Below is a nice registry change that will add a "Run MS-DOS Prompt here" to your right-click context menu so that you can just right click on a folder and get a DOS window right there rather than have to CD a bunch of times. If you have windows, take this code and put it into a file called RunMSDOSPromptHere.reg and then double click on it.
REGEDIT4
[HKEY_CLASSES_ROOT\Directory\Shell\DosPrompt]
@="Run MS-DOS Prompt here"
[HKEY_CLASSES_ROOT\Directory\Shell\DosPrompt\Command]
@="Cmd /k CD \"%L\" "
Say Yes and OK and then you will be able to get a console window right at the folder you need. Then type in the name of your app and see all the stuff it spews out, including any error messages. Now they won't disappear and you can see what went wrong.
  댓글 수: 13
Nicholas
Nicholas 2015년 7월 1일
Precisely. I'm starting to wonder if it's an issue with subclass/superclass inheritance. Do you know if that compiler handles inheritance of user defined classes?
Image Analyst
Image Analyst 2015년 7월 1일
I don't know. Call them and ask.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Construct and Work with Object Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by