Running compiled AppDesigner app. Error finding getRunningApp
12 次查看(过去 30 天)
显示 更早的评论
I am running a compiled GUIDE program. (This is a very large, complex legacy program). We wanted to add a custom pop-up window, which we created in App Designer. The program suite runs perfectly fine within the Matlab environment. But when I compile and run it, I get an error that says it can't find getRunningApp (which is part of the App Designer boiler plate code). I can't find that function anywhere in the Matlab folders to include it in the prj file.
I tried including the app's mlapp file in the prj file and the app's m-file in the prj file. Both compiled files give the same error.
Am I missing something?
0 个评论
采纳的回答
Voss
2024-2-26
Here's some wild speculation: getRunningApp is only used when the .mlapp is a singleton app (i.e., an app that allows only one instance of itself to run). If that's true, then you can make your .mlapp not a singleton app and see if it compiles and runs, since nothing will attempt to call getRunningApp in that case(?).
To do so: in App Designer, click the Designer tab up top, click "App Details", then click "Code Options" at the bottom of that window, and uncheck "Single Running Instance". Click OK to close the window. Save the .mlapp file. Compile and run. See what happens.
2 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!