How do I resolve the "AppManagementService indexing warning" while calling an app from a guide GUI?

2 views (last 30 days)
So I have a set of guide GUI's that are already set up and are in working order. I needed to add another GUI, that would be accessed by one of the previous GUI's, to extend functionality. Based on what the new GUI needed to do I thought it may be better to attempt to use the App Designer and so far so good. I completed creating and testing the new app window and call it from the guide GUI just fine except for receiving the warning "A value of class 'appdesigner.internal.service.AppManagementService' was indexed with no subscripts specified. Currently the result of this operation is the indexed value itself, but in a future release, it will be an error."
I thought this may have something to do with how I use the app within the guide GUI but I can't seem to come up with a reason I get the warning. The biggest concern is that the end user will likely upgrade MatLab when they can and I don't want the app to stop working on them just for upgrading.
Just for reference this is how the app is being called from a guide GUI. To note as well this error is not always displayed to the command window on every run. It seems to occur fairly randomly.
myapp = NewApp();
NewApp.StartUp(setupInfo); %Sets up values in the app and calls uiwait
if myapp.wasCanceled
myApp.Dispose(); %Deletes the app instance without getting return values
return;
end
newvalues = myApp.returnvalues;
myApp.Dispose();
  1 Comment
Khalid Rajab
Khalid Rajab on 14 Dec 2017
Hi Wesley,
Just wondering, did you find a solution to this?
I've come up with the same problem, and the code I'm using no long works when moving from MATLAB 2017a to 2017b.

Sign in to comment.

Answers (0)

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!