I am trying to recompile an app that hasn’t been updated in a couple of of years. I fixed some minor build errors under the new IDE, installed the latest MBS plugins, and went to run. The icon just bounces on and on and on for minutes and then stops bouncing and then the Finder tells me my app is not responding. I have to force quit it.
Any ideas how to proceed? I can’t even think how to debug it when I can’t even get to the point where I can step through the code and the compiler gives me an all clear on no errors when using “Command-K”
Sounds like something is happening in the app.open or window.open event - perhaps a timeout or a tight loop. Try putting a break on the first line and step through.
Yes, it is code signed, but I removed that external script, removed all the code from app.open, and it still just bounces in the dock. I am now at a loss of what else to remove to check it.
Have you registered the MBS plugins in the Open Event. I once had an issue where the debugging app ran but the compiled app didn’t (the app crashed) and it was because I hadn’t registered the MBS plugins and they were showing lots of warnings.
I’d love to know whats in the menu bar & menu item constructors since these could be custom subclasses of either / both
thats where things appear to go off the rails
Yes! The menubar seems to be the area of trouble. I deleted the whole menu bar and anything referencing it to see what would happen and my app was able to launch. So, the menu bar is causing this somehow, is there a way to pinpoint further where exactly the issue may be coming from?