Thanks for any help folks.
I've now changed to the cvs version of python -gnome and pygtk, but not
the cvs version of gtk+. That seemed to help in the beginning but when i
ran more than 3 to 4 instances of the class in which i've declared the
progressbar the app froze again. If i tokk away references to the
progressbar i had no problem.
After testing alot, i found out that this seems to fix the problem:
gtk.threads_enter()
remaining_lock.acquire()
self.label0.set_text('Speed %0.2f M/s %s' % (speed, tt))
self.label2.set_text('Copy %0.2fM' % size)
self.progress.set_fraction((size/totsize))
remaining_lock.release()
gtk.threads_leave()
The lock is an RLock object from the threading module in python. I guess
there must be a bug somewhere, but i cannot explain why this is now
working.
�istein
On Thu, 2003-01-23 at 02:07, Rob Brown-Bayliss wrote:
>
> > > In addition to that the set_percentage method is crashing with a lot of
> > > debug msg + a x async message. The set_percentage is called within a
> > > thread. And yes, I'm using gtk.threads_enter, gtk,threads_leave around
> > > it. I've also initialized gtk threads. The same applies for the
> > > progress.update and progress.set_fraction.
>
> Try upgrading the libpthread packages on your machine. I had a problem
> with threads bombing, found some obscure reference to a bug in
> libpthread, which on my machine is part of the glibc packages.
>
> I upgraded and have gone from my app guaranteed crash once a day to
> crash free for 30 days, every time the crash was either init'ing a new
> thread or a thread communicating with the main app.
>
> --
>
> * Rob Brown-Bayliss
> * =================
> * zoism.org
> _______________________________________________
> pygtk mailing list [EMAIL PROTECTED]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/