onSolutionClose() Causes Login Window to Show

Version: 6.0.3 - build 1223

Our solution has a 'onSolutionClose() method whereby we call ‘security.logout()’ to logout the user and close the solution. This works fine if the close button in the upper right-hand corner of the main window is clicked. However, if we use the ‘application.closeSolution()’ or ‘security.logout()’ methods to programmatically close the solution and log out the user, the solution closes, but the login window (re)appears. What do we have to do programmatically close the solution and log out the user?

application.exit()

Ugh…how did I miss that method. Thanks, Harjo!

:lol: