Previn Chetty 3 Posted August 12, 2020 Posted August 12, 2020 Hi All, I was wondering if anyone has managed to solve the issue wih the Appilcation.Close() and Application.Exit() functions on IronPython. I read, in numerous places, that this "freezes" th application and I am having the same issue. Below is a snippet of my code, everything works 100% until I need to call the Application.Close() function. Spotfire then hangs and I have to close the application through the task manager. What I need is just for the Analysis to close. import clr import Spotfire.Dxp.Application from Spotfire.Dxp.Framework.ApplicationModel import ApplicationThread from Spotfire.Dxp.Application import AnalysisApplication, DocumentOpenSettings from Spotfire.Dxp.Framework.Library import LibraryManager, LibraryItemType, LibraryItemRetrievalOption, LibraryItemMetadataSettings ### ALL MY CODE HERE ### # This can be used to close the Spotfire Application but this freezes Spotfire and I have to close through task manager if (My Condition): Application.Close()
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now