Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Python+GTK thread question (program freezing)...

Thread Tools

Python+GTK thread question (program freezing)...

Christian Seberino
Posts: n/a
We have a program that uses threads. If we DON'T run the GTK+ GUI
code then multitasking is fine and every thread gets a little CPU time.

If we run a GTK+ GUI in the main parent process/thread then program

The PyGTK commands called gtk.threads.thread_enter() and
gtk.gdk.threads_leave() are used to avoid conflicts caused by
two threads writing to GUI at the same time. The disallow/allow
other threads to write to GUI as needed.

It would seem that the problem are with these two commands but
the guys cannot seem to find the problem. As you know, threads
are not the easiest things to debug.

I don't want to think Python threads are unstable.
Are they??

Any ideas at all how to begin to solve this?

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Terminating a thread from the main thread Charles A. Lackman ASP .Net 3 12-09-2004 02:12 PM
Thread was being aborted in win2003 server. Back ground thread reading MS access database, no redirects or transfers. Johanna ASP .Net 0 10-13-2004 01:32 PM
"Thread was being aborted" error from WebApp using Thread.Sleep. Stephen Miller ASP .Net 3 07-01-2004 11:50 PM
perl 5.8.2/3 - thread started by a thread pawo Perl 0 02-16-2004 01:18 PM
PyNew_Interpreter(): "Fatal Python error, invalid thread state for this thread" question vincent wehren Python 0 12-11-2003 08:09 PM