[wx 2.6, Debian Linux, g++ version 4.1.2] threads and dialogs

Micah Lapping-Carr Micah_Lapping-Carr at brown.edu
Mon Oct 8 20:10:40 PDT 2007


Hi,

I've been doing some multi-threaded wxWidgets programming for a networked
application, and so far it has been working fantastically.  However, I have
recently been foiled by the following snippet of code:



wxString choice=3D::wxGetSingleChoice(_T("Select a dog for the user to conn=
ect
to."),

_T("Dog Selection for New User"),

arr,

this);

where 'arr' is a wxArrayString with names in it.  The code compiles fine,
but when it gets to the above line, I get the following message:

Xlib: unexpected async reply (sequence 0xf81)!

and the program crashes.  The hex sequence is different every time, but it
is always a small number (i.e. no more than 4 hex digits).  The thread
executing the code is a different one from the thread that created the
object whose method executes the code.  I don't know if that is relevent
information.  Please, any insight as to how to fix this problem is greatly
appreciated.  This bug is greatly impeding my project, and every workaround
I have tried has failed.

Thanks,
Micah Lapping - Carr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20071008/d0b=
d1ba7/attachment.htm


More information about the wx-users mailing list