Question

I have a pyside application, which runs perfectly fine. I have during development of the application seen periods where the application got stuck while shutting down. But the error often was gone when I was finish with my update.

Now I have made a new update, and now the application stalls upon exit. All functionalities works as expected.

As I have seen the error from time to time, I may think its a raise condition on garbage collection? But I don't know.

My code is something like:

def main(args):    
    appQt = QtGui.QApplication("KalimbaScope")
    ex =  KalimbaScope(args)
    appQt.exec_()
    print "wow, it gets thos far !" 


if __name__ == "__main__":
    main(sys.argv)

Where KalimbaScope is my main aplication class

class KalimbaScope(QtGui.QMainWindow):
    #do a lot

and well you guessed it, when shutting down the application it prints out:

wow, it gets thos far !
Was it helpful?

Solution

This turned out to be due to a 3. party DLL i was using. I have not yet found the reason, but the DLL only fails when running from a pySide application.

I do think the DLL is the issue and is trying to get it fixed.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top