AddPendingEvent

I'm using Python 2.3, wxWindows 2.4.2 and wxPython 2.4.2.4 on a Linux box.
The app I've written is using a separate thread to do CPU intensive tasks.
When a GUI update is needed, the thread invokes
wxEvtHandler.AddPendingEvent().
Unfortunately every now and then that AddPendingEvent() call never returns,
thus freezing the app; no exception is thrown. Is this supposed to happen?

Thanks

···

--
  Anakim Border
  aborder@users.sourceforge.net
  http://pydc.sf.net

Anakim Border wrote:

I'm using Python 2.3, wxWindows 2.4.2 and wxPython 2.4.2.4 on a Linux box.
The app I've written is using a separate thread to do CPU intensive tasks. When a GUI update is needed, the thread invokes wxEvtHandler.AddPendingEvent().
Unfortunately every now and then that AddPendingEvent() call never returns, thus freezing the app; no exception is thrown. Is this supposed to happen?

No it is not, but I think I can see a situation when it could happen. If you can provide a sample that duplicates this problem then I can test my fix to be sure.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!