On Oct 5, 2006, at 5:30 PM, David Hirschfield wrote:

Here's the issue now: I don't know much about how the garbage collector works in python, and in order to get the thread to run without freezing, I'm wrapping the threaded processing function with calls to gc.disable()/gc.enable().

Will that work? Does calling gc.disable() on a thread disable garbage collection for all threads, or only for the calling thread? I suspect that what you want to do is to call gc.disable() once, and then call gc.collect() explicitly on the main thread (or whichever thread is handling gtk).

 -- Steve

--
-- EMail: [EMAIL PROTECTED] Phone: (301) 975-5423 -- -- WWW: http://math.nist.gov/mcsd/Staff/SLanger/ Fax: (301) 975-3553 -- -- Mail: NIST; 100 Bureau Drive -- Stop 8910; Gaithersburg, Md 20899-8910 --

-- "I don't think this will work. That's why it's science." -- -- Naomi Langer (age 6), 17 Feb 2003 --


_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to