I have an instance where a Try:Catch is throwing an exception in my visionWindowOpened. In this case, I want to display a MessageBox for the operator and then close out the Window once they acknowledge the error.
The message box piece works, but I cannot seem to close the window. I get a Java error when I try to close the window. I assume this is because the Window has not completed the Open at this point. Is there a way around this?
system.gui.messageBox(“Please verify system is online.”,“System Unavailable.”)
Also tried system.nav.closeWindow(event.source)