[Pydev-users] [Users] RE: Debug Exception - dictionary changed size dur
Brought to you by:
fabioz
|
From: SourceForge.net <no...@so...> - 2011-06-29 14:21:18
|
The following forum message was posted by darrellrmay at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4560990: This patch seemed to work for me... --- pydevd.py.old 2011-06-29 10:15:43.463040992 -0400 +++ pydevd.py 2011-06-29 10:13:00.154231186 -0400 @@ -52,6 +52,7 @@ import pydevd_io from pydevd_additional_thread_info import PyDBAdditionalThreadInfo import time +import copy threadingEnumerate = threading.enumerate threadingCurrentThread = threading.currentThread @@ -400,7 +401,8 @@ if hasattr(t, 'doKill'): t.doKill() - for tId in self.RUNNING_THREAD_IDS.keys(): + runningThreadsCopy = copy.copy(self.RUNNING_THREAD_IDS) + for tId in runningThreadsCopy.keys(): try: if not DictContains(foundThreads, tId): self.processThreadNotAlive(tId) cheers, Darrell. |