Handles not initialized at running GUI from GUIDE

1 view (last 30 days)
Hello everyone, I'm facing a problem using GUIDE, I have developed a GUI that analyses an image and output the result trought a static text button, but suddenly this starting launch the error "reference to non existing field" for the tag corresponding to static text. I think this was related to static text so I change to edit text but nothing change. Tracing the code I see that handles output [], when the code is executed directly from the guide, but works fine when executed from the editor, using the corresponding .m file, I think this error can be related to the gui pointing to an incorrect location, I have several copies of the gui, because I'm developing various versions, here are my questions: *How can force the gui to point exactly what *.m file is executing? *Can the problem have another cause?.
Version: r2012a

Answers (1)

Image Analyst
Image Analyst on 17 Jul 2014
What is a "static text button"? Whatever it is, a static text label or a button, you don't have anything with that tag name on your GUI. If everything is in the same folder, and that folder is the "current folder", it will run those before (instead of) it runs any that "shadows" it in different folders on the search path. Check your spelling and case - MATLAB is case sensitive.

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!