Hang time after quick close

Bug #139879 reported by Christopher Pax
2
Affects Status Importance Assigned to Milestone
Gladex
Fix Released
Medium
Christopher Pax

Bug Description

After I click the execute button and quickly click close, the program hangs.

Answer:
This Problem is due to threading. I use threading to display a string of text one line at a time over a period of time in the status bar. To do this I open another thread. When you go to close the program the thread is still running, and so it waits till its destroyed.

Revision history for this message
Christopher Pax (paxmanchris) wrote :

After spending some time reading the threading module python docs. I used the fallowing, self found solution.
from * import threading
...
listOfOpenThreads = enumerate()
for thisThread in listOfOpenThreads:
  print dir(thisThread) # this displays all the compoentents of the object "thisThread" this is what i used to find the thread stop function
  try:
   thisThread._Thread__stop()
  except:
   pass

Changed in gladex:
assignee: nobody → paxmanchris
importance: Undecided → Medium
status: New → Fix Committed
Changed in gladex:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.