- Are you using a supported compiler? R2012b Supported compilers
- Use:
problems deploying a GUI to windows
1 view (last 30 days)
Show older comments
Hi. I'm having several problems deploying a GUI to Windows.
I'm running R2010b under Window 7 (32b). I wrote a GUI which works fine under MATLAB.
1st problem: The build process works fine. The packaging process works fine SOMETIMES, but some other time (unpredictable to me) give the following error:
zip I/O error: Permission denied zip error: Could not create output file (C:/Users/guido/Documents/MATLAB/Mie_pkg.exe)
Why? And why not regularly? At the beginning I was creating the pkg file in the Desktop, and it was always giving this problem. Now, in the MATLAB directory created by MATLAB installation, I get it right MOST of the time, but not always! I'm getting crazy with this ...
2nd problem: even when the packaging step works fine, I cannot try my application. It' always complaining that "could not find version 7.14 of the MCR", whether I installed (letting the package do it for me or running the MCRInstaller directly). What's wrong?
I kept the log file of the build (long file) and packaging (short file) if useful.
3rd problem: this is more from an unexperienced user of MATLAB ... under certain rare conditions my GUI may give an error. Running it under MATLAB this is not a problem, but would it be a problem in a standalone application? would it make the application crash? and if yes, is there a way to redirect error messages, say, to a file and avoid crashing?
Thanks for your help.
0 Comments
Accepted Answer
Sean de Wolski
on 13 Mar 2012
dbstop if error
Then run the GUI until you get the error, it'll stop and show you what's going on. Fix it!
0 Comments
More Answers (1)
See Also
Categories
Find more on MATLAB Compiler in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!