Error evaluationg 'OpenFcn' because of a waitfor command
Show older comments
Hi,
I have a gui, that when close with a cancle or the X at the top right corner of the gui will give me this error :

The reason why i get this error is because in my program i have a waitfor command that waits for the user to click on pushbutton to allow the rest of the programm to run (that waitfor command is pretty essential for the programm). This error happens if the gui is closed before the pushbutton associated to the waitfor command is pressed.
Is there a way to not have this error message without removing the waitfor ?
Accepted Answer
More Answers (0)
Categories
Find more on Debugging and Improving Code 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!