App standalone doesn't open file .txt from window - sound message error

I have created from the .m and .fig files, the application standalone by using Matlab compiler. I added the first window .m in the "main file" and all the others callback etc in the "shared resources". Once the building of the application is finished, I open the app and everything work fine except that in the window where I putted the "browse" button for load files, it doesn't load them once I set the path file by choosing it from the menu. It make a "beep" sound like error message and nothing happen. I have no idea why is not working, if I start the program by using the "guide" in the command window of Matlab, it work fine. Any help please?

回答 (1 件)

Robert Cumming
Robert Cumming 2012 年 1 月 19 日

0 投票

Run the exe from the dos command - that way you will see what the error message is saying - that way you will work out what the error is!

4 件のコメント

shiva_28
shiva_28 2012 年 1 月 19 日
Thank you for your answer Robert!
I'm running on Mac, the app name is "Eseguibile"
from the terminal I went in the correct directory and written:
"open Eseguibile.app". the app was launched, but when I try to choose the .txt from the browse button, same error, but no error messages on the terminal :(
Kaustubha Govind
Kaustubha Govind 2012 年 1 月 19 日
Perhaps you could also try the -R -logfile option to specify a logfile, where the error message may be saved?
shiva_28
shiva_28 2012 年 1 月 19 日
I dont understand, what you mean with -R -logfile option?
Robert Cumming
Robert Cumming 2012 年 1 月 20 日
you need to capture the error message - you could wrap the area "you think" is crahsing in a try/catch and then write the lasterror message to a file or use a gui to show it.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeFile Operations についてさらに検索

質問済み:

2012 年 1 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by