Hi, I have a program thats segfualts on exit which uses QThread. If I remove the start call from the worker the program works fine. The thread works fine throughout the application it is only on exit that it segfaults. This is the most basic case.
version: ------------------ >>> PyQt4.pyqtconfig.Configuration().pyqt_version_str '4.7' ~/src/test:)% python -V Python 2.6.5 ~/src/test:)% kde4-config -v Qt: 4.6.3 KDE Development Platform: 4.4.4 (KDE 4.4.4) kde4-config: 1.0 code: --------------------- from PyQt4.QtCore import * from PyKDE4.plasma import Plasma from PyKDE4 import plasmascript class Thread(QThread): def __init__(self, parent=None): QThread.__init__(self, parent) def run(self): return class Widget(plasmascript.Applet): def __init__(self, parent, args=None): plasmascript.Applet.__init__(self,parent) def init(self): #self.label = Plasma.Label(self) #self.label.setText("thread crash") self.worker = Thread() self.worker.start() def CreateApplet(parent): return Widget(parent) -- Thanks, Nate Carson _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt