[PyKDE] Need help on a weird QThread problem
İsmail Dönmez
ismail at uludag.org.tr
Fri Sep 30 15:27:40 BST 2005
Hi all,
I implemented a QThread based function to run some external command in my
application. Its works like this :
main widget:
command = QThreadClass()
command.start()
in QThreadClass:
def run(self):
# Run some external command
but when the main application exits I get this:
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/lib/python2.4/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/usr/lib/python2.4/threading.py", line 636, in __exitfunc
self._Thread__delete()
File "/usr/lib/python2.4/threading.py", line 522, in __delete
del _active[_get_ident()]
KeyError: -1211651904
Error in sys.exitfunc:
Traceback (most recent call last):
File "/usr/lib/python2.4/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/usr/lib/python2.4/threading.py", line 636, in __exitfunc
self._Thread__delete()
File "/usr/lib/python2.4/threading.py", line 522, in __delete
del _active[_get_ident()]
KeyError: -1211651904
Googling for the traceback doesn't provide much info, so wondering if anyone
has an idea whats might be going on ?
P.S: Please note that main app owns main widget instance and it owns the
QThreadClass() instance.
Regards,
ismail
More information about the PyQt
mailing list