Gui application: Error in mclFreeStackTrace

26 次查看(过去 30 天)
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 个评论
Arjun Viswanathan
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 2015-7-16
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.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Compiler 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by