error message in app designer when closing app
8 views (last 30 days)
Show older comments
Commented: Leon on 20 Jun 2022
I have made an App that works ok hwoever when I close my app (made in app designer), I get the following error message in the Matlab Command screen:
Invalid or deleted object.
Error in Trade_App_1/startupFcn (line 27)
app.Label_1.Text = Label_L;
Error using matlab.apps.internal.GraphicsCallbackProxy/runCallbackFunction (line 23)
Error while evaluating GraphicsCallbackProxy CallbackFcn.
Can any one help? Thx in advance
Geoff Hayes on 20 Jun 2022
@Leon - rather than using a while loop to update your label (which I suspect is the cause of the error), I recommend using a timer instead to do the work that is in the body of the while loop. You would then start the timer and then later stop the timer as the app exits. This should prevent the error from occurring.
More Answers (0)
Find more on Startup and Shutdown 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!