Problem with Thread.join()

Robert Dailey rcdailey at gmail.com
Mon Aug 20 18:12:47 CEST 2007


Hey guys,

Sorry for taking so long to respond. I had actually figured out what
this issue is over on the wxPython mailing list. The issue was that I
was attempting to configure wxPython controls from a remote thread,
which is apparently illegal due to some state persistance issues.

Thanks all for responding and I do apologize for not having given
proper code snippets on my first post. Take care all.

On 8/20/07, James Matthews <nytrokiss at gmail.com> wrote:
> Post some code so we can see the issue! I would say that the issue is where
> your function that you are calling isn't exiting!
>
>
> On 8/20/07, Gabriel Genellina <gagsl-py2 at yahoo.com.ar> wrote:
> > En Mon, 13 Aug 2007 20:10:53 -0300, Robert Dailey <rcdailey at gmail.com>
> > escribi�:
> >
> > > I have a class that derives from threading.Thread. To signal the thread
> > > to
> > > exit its infinite loop, I set an Event. Once the thread checks
> > > Event.isSet()
> > > and it is true, it proceeds to break out of the loop and exit the
> > > function.
> > > In the main thread, right after calling Event.set(), I call
> > > Thread.join() to
> > > wait on the thread to exit. However, if I call Thread.join() the
> > > application
> > > locks up because for some reason calling Thread.join() prevents the
> > > thread
> > > from exiting. I don't know why. Any help? Thanks...
> >
> > Conceptually you're doing it the right way. Post some code demonstrating
> > the problem...
> >
> > --
> > Gabriel Genellina
> >
> > --
> > http://mail.python.org/mailman/listinfo/python-list
>
>
>
> --
> http://www.goldwatches.com/
> http://www.jewelerslounge.com
> --
> http://mail.python.org/mailman/listinfo/python-list
>


More information about the Python-list mailing list