Discussion:
wxWidget3.0.1(gtk) : Error: this is a multi-threaded client and XInitThreads has not been called
Mahmoud Eltahawy
2014-09-30 18:15:58 UTC
Permalink
Hi All,
I am using wxWidget3.0.1(gtk) and I am trying to access the wxGrid from a
thread body (locking/unlock gui during access) but I got this message:

[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not
been called
[xcb] Aborting, sorry about that.
xcb_io.c:178: dequeue_pending_request: Assertion
`!xcb_xlib_unknown_req_in_deq' failed.


Can u please help?

Thanks
Mahmoud
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Igor Korot
2014-09-30 18:23:00 UTC
Permalink
Hi, Mahmoud,
Accessing GUI from secondary thread is not supported.
You best choice is to post event from the thread to the main GUI thread and
process the event.

Thank you.
Post by Mahmoud Eltahawy
Hi All,
I am using wxWidget3.0.1(gtk) and I am trying to access the wxGrid from a
[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not
been called
[xcb] Aborting, sorry about that.
xcb_io.c:178: dequeue_pending_request: Assertion
`!xcb_xlib_unknown_req_in_deq' failed.
Can u please help?
Thanks
Mahmoud
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
or visit http://groups.google.com/group/wx-users
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Mahmoud Eltahawy
2014-09-30 18:41:25 UTC
Permalink
Hi Igor,
But I am using wxMutexGuiEnter before access wxGrid and wxMutexGuiLeave
after ..is it still supported?


Thanks
Mahmoud
Post by Mahmoud Eltahawy
Hi All,
I am using wxWidget3.0.1(gtk) and I am trying to access the wxGrid from a
[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not
been called
[xcb] Aborting, sorry about that.
xcb_io.c:178: dequeue_pending_request: Assertion
`!xcb_xlib_unknown_req_in_deq' failed.
Can u please help?
Thanks
Mahmoud
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Loading...