Gui application: Error in mclFreeStackTrace

25 views (last 30 days)
Thomas
Thomas on 22 Oct 2013
Commented: anuj singh on 16 Jul 2015
When I try to start the GUI application that I created appears a yellow notice error with the write: Error in mclFreeStackTrace. The GUI application is very simple. Could be the problem that I try to include an external library? Matlab compiles everything without errors. The problem occurs when I try to run the .exe file.
any idea? Thanks
  3 Comments
Arjun Viswanathan
Arjun Viswanathan on 3 Apr 2014
I had the same error, the first time one of my colleagues ran my compiled exe on their machine. Mathworks suggested i run the app from the command line to see debug and error info (always a good idea).
Turns out my startup.m file was being included in the compiled exe (this is expected behaviour, to be possibly removed in a future release).
The solution which worked for me was to encase my startup.m file in an
if ~isdeployed ... end
block, which ensured that it was not run when deployed. The compiled exe now runs without issues. I hope this helps others.
anuj singh
anuj singh on 16 Jul 2015
Getting the same problem....I tried this but it is not working. My matlab exe file is working fine when i am executing it by running it in terminal or normally. It is showing error when I am running it through some another code. It is showing error Attempt to execute script as a function. When I closed the message window another window comes and show the message-Error in mclFreeStackTrace.

Sign in to comment.

Answers (0)

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!