Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Compiled Matlab GUI code starts up too slow...
Replies: 25   Last Post: Aug 13, 2014 9:08 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
ImageAnalyst

Posts: 12,932
Registered: 12/26/06
Re: Compiled Matlab GUI code starts up too slow...
Posted: Aug 20, 2011 4:26 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On Aug 20, 3:56 pm, "Arda " <ardaa...@hotmail.com> wrote:
> One more thing that i forgot to mention; the code i gave above creates a java frame and when i compile it, it doesnt work like a figure window. After appearing on screen it suddenly disappears and my application terminates (i also checked from task manager). I know that using a Matlab figure instead of a java frame is a solution but is it possible to use a java frame with a reasonable way? (using a pause shouldnt be one for example..)

---------------------------------------------------------------------
How are you launching it? Are you double-clicking on the icon in
Windows Explorer (My Computer)? Yes if it bombs it will barf a bunch
of stuff to the console window and then immediately close down the
console window. You need to run it from the command line or MATLAB in
order to have all the stuff it barfed up remain for you to inspect.
Here, try this:

Take these lines and save them to a file and call the file
RunDOSPromptHere.reg:

REGEDIT4

[HKEY_CLASSES_ROOT\Directory\Shell\DosPrompt]
@="Run MS-DOS Prompt here"
[HKEY_CLASSES_ROOT\Directory\Shell\DosPrompt\Command]
@="Cmd /k CD \"%L\" "

Now double click that file and say yes when it asks you for permission
to change the registry. What this will do is give you a new context
menu when you right click on a folder in Windows Explorer. You can
browse to any folder (such as the one where your exe lives) and then
right click and select "Run MS-DOC Prompt here" from the pop-up
context menu. It will immediately give you a console window with that
folder as the current directory. Basically it's the same as doing
Start/Run/cmd and then typing cd "c:\whatever\blahblahblah\yadayada"
Now, once you're in that folder, type the name of your executable and
it will run. BUT when it barfs and exits, all the stuff you printed
out plus all the error messages will remain in the console window for
you to inspect. You can do this on your target computer.

Have you verified that the executable works on your development
machine? You can do that by cd'ing to the folder where you told it to
put the exe. Then, in the MATLAB command window type ! (exclamation
mark) followed immediately (no space) with the name of your
executable. If it crashes also on your computer then that gives you
something to track down easier than deploying and trying to debug on
the target computer. The crash info will appear, and remain, in the
MATLAB command window.

Finally since you paid $5000 for the compiler, the Mathworks is pretty
helpful in helping you. I've had them track down some pretty esoteric
issues with compiled programs before. So if the entries in the FAQ
have all been tried and all failed, give the Mathworks tech support a
try - might as well get some support for your $5k.
Good luck,
ImageAnalyst


Date Subject Author
10/13/10
Read Compiled Matlab GUI code starts up too slow...
Sanghee
10/13/10
Read Re: Compiled Matlab GUI code starts up too slow...
ImageAnalyst
10/16/10
Read Re: Compiled Matlab GUI code starts up too slow...
Sanghee
8/19/11
Read Re: Compiled Matlab GUI code starts up too slow...
Arda
8/19/11
Read Re: Compiled Matlab GUI code starts up too slow...
Bruno Luong
8/19/11
Read Re: Compiled Matlab GUI code starts up too slow...
Arda
8/19/11
Read Re: Compiled Matlab GUI code starts up too slow...
Bruno Luong
8/19/11
Read Re: Compiled Matlab GUI code starts up too slow...
ImageAnalyst
2/21/12
Read Re: Compiled Matlab GUI code starts up too slow...
Krishan
8/19/11
Read Re: Compiled Matlab GUI code starts up too slow...
Arda
8/19/11
Read Re: Compiled Matlab GUI code starts up too slow...
Bruno Luong
8/19/11
Read Re: Compiled Matlab GUI code starts up too slow...
ImageAnalyst
8/20/11
Read Re: Compiled Matlab GUI code starts up too slow...
Arda
8/20/11
Read Re: Compiled Matlab GUI code starts up too slow...
ImageAnalyst
8/20/11
Read Re: Compiled Matlab GUI code starts up too slow...
Arda
8/20/11
Read Re: Compiled Matlab GUI code starts up too slow...
Bruno Luong
8/20/11
Read Re: Compiled Matlab GUI code starts up too slow...
Arda
8/24/11
Read Re: Compiled Matlab GUI code starts up too slow...
Arda
8/24/11
Read Re: Compiled Matlab GUI code starts up too slow...
Bruno Luong
8/20/11
Read Re: Compiled Matlab GUI code starts up too slow...
Yair Altman
5/22/12
Read Re: Compiled Matlab GUI code starts up too slow...
amit pathania
5/22/12
Read Re: Compiled Matlab GUI code starts up too slow...
Yair Altman
7/26/12
Read Re: Compiled Matlab GUI code starts up too slow...
Yair Altman
11/13/12
Read Re: Compiled Matlab GUI code starts up too slow...
Marc
9/19/13
Read Re: Compiled Matlab GUI code starts up too slow...
elbaz samuel
8/13/14
Read Re: Compiled Matlab GUI code starts up too slow...
Peter

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.